aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InterferenceCache.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-13 22:20:09 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-13 22:20:09 +0000
commitfae30b240b830044af33ef228457a53236fc149b (patch)
tree8d77efd26908b35faafaa716c206cc4ab3e97585 /llvm/lib/CodeGen/InterferenceCache.h
parent9559d360e57c35340aaeee6c2372368bf104e4c9 (diff)
downloadllvm-fae30b240b830044af33ef228457a53236fc149b.zip
llvm-fae30b240b830044af33ef228457a53236fc149b.tar.gz
llvm-fae30b240b830044af33ef228457a53236fc149b.tar.bz2
Revert r135074 and r135080. They broke clamscan.
llvm-svn: 135096
Diffstat (limited to 'llvm/lib/CodeGen/InterferenceCache.h')
-rw-r--r--llvm/lib/CodeGen/InterferenceCache.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/InterferenceCache.h b/llvm/lib/CodeGen/InterferenceCache.h
index 6434b3a7..6c36fa4 100644
--- a/llvm/lib/CodeGen/InterferenceCache.h
+++ b/llvm/lib/CodeGen/InterferenceCache.h
@@ -127,14 +127,10 @@ public:
Entry *CacheEntry;
BlockInterference *Current;
public:
- /// Cursor - Create a dangling cursor.
- Cursor() : CacheEntry(0), Current(0) {}
-
- /// setPhysReg - Point this cursor to PhysReg's interference.
- void setPhysReg(InterferenceCache &Cache, unsigned PhysReg) {
- CacheEntry = Cache.get(PhysReg);
- Current = 0;
- }
+ /// Cursor - Create a cursor for the interference allocated to PhysReg and
+ /// all its aliases.
+ Cursor(InterferenceCache &Cache, unsigned PhysReg)
+ : CacheEntry(Cache.get(PhysReg)), Current(0) {}
/// moveTo - Move cursor to basic block MBBNum.
void moveToBlock(unsigned MBBNum) {