diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-24 11:44:15 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-07-24 11:44:15 +0000 |
| commit | cf72e7f8547076a5b3d74aa8bfc311253558d4da (patch) | |
| tree | c1fb1fd887d36390c8e25f9e9387290b0e041f5b /llvm/lib/CodeGen/LiveInterval.cpp | |
| parent | 4e0969b50018db5ebb9623ecf79fd732dc77eb62 (diff) | |
| download | bcm5719-llvm-cf72e7f8547076a5b3d74aa8bfc311253558d4da.tar.gz bcm5719-llvm-cf72e7f8547076a5b3d74aa8bfc311253558d4da.zip | |
Change std::map<unsigned, LiveInterval*> into a std::map<unsigned,
LiveInterval>. This saves some space and removes the pointer
indirection caused by following the pointer.
llvm-svn: 15167
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 79aa710c03b..11eb0fe7de4 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -75,8 +75,8 @@ bool LiveInterval::overlaps(const LiveInterval& other) const { return true; if (i->start > j->start) { - swap(i, j); - swap(ie, je); + std::swap(i, j); + std::swap(ie, je); } assert(i->start < j->start); |

