diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-17 23:47:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-17 23:47:00 +0000 |
commit | 5229cfd1638705a7dbf668a840c6015f6b3ecbc6 (patch) | |
tree | 6386075afc3c37ab8378d2c8873a0172b000a847 /llvm/lib/CodeGen/RegisterCoalescer.cpp | |
parent | 3a1623f5e4478edf2ff6a50eb5a7cade0087c6e9 (diff) | |
download | bcm5719-llvm-5229cfd1638705a7dbf668a840c6015f6b3ecbc6.tar.gz bcm5719-llvm-5229cfd1638705a7dbf668a840c6015f6b3ecbc6.zip |
Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size.
llvm-svn: 215868
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 222fb52288c..1aed058e128 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -1439,7 +1439,7 @@ public: /// Add erased instructions to ErasedInstrs. /// Add foreign virtual registers to ShrinkRegs if their live range ended at /// the erased instrs. - void eraseInstrs(SmallPtrSet<MachineInstr*, 8> &ErasedInstrs, + void eraseInstrs(SmallPtrSetImpl<MachineInstr*> &ErasedInstrs, SmallVectorImpl<unsigned> &ShrinkRegs); /// Get the value assignments suitable for passing to LiveInterval::join. @@ -1952,7 +1952,7 @@ void JoinVals::pruneValues(JoinVals &Other, } } -void JoinVals::eraseInstrs(SmallPtrSet<MachineInstr*, 8> &ErasedInstrs, +void JoinVals::eraseInstrs(SmallPtrSetImpl<MachineInstr*> &ErasedInstrs, SmallVectorImpl<unsigned> &ShrinkRegs) { for (unsigned i = 0, e = LI.getNumValNums(); i != e; ++i) { // Get the def location before markUnused() below invalidates it. |