aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LiveVar/LiveVarSet.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 16:35:12 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 16:35:12 +0000
commit1164632c7e67e9a3bf6b0b6e582f1d5124e348f7 (patch)
tree1308c76076f963e875d8ab0b331270a4516a30cf /lib/Analysis/LiveVar/LiveVarSet.cpp
parent387092e09c44c4a34981bca2fe8998b7d69e6b52 (diff)
* Add #includes that were yanked out of header files
* Convert over to valueset interface that uses insert & erase insead of add and remove * the -> operator really isn't that hard to use! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVar/LiveVarSet.cpp')
-rw-r--r--lib/Analysis/LiveVar/LiveVarSet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/LiveVar/LiveVarSet.cpp b/lib/Analysis/LiveVar/LiveVarSet.cpp
index 8623aa8654..9243d05981 100644
--- a/lib/Analysis/LiveVar/LiveVarSet.cpp
+++ b/lib/Analysis/LiveVar/LiveVarSet.cpp
@@ -12,13 +12,13 @@
void LiveVarSet::applyTranferFuncForMInst(const MachineInstr *MInst) {
for (MachineInstr::val_const_op_iterator OpI(MInst); !OpI.done(); ++OpI) {
if (OpI.isDef()) // kill only if this operand is a def
- remove(*OpI); // this definition kills any uses
+ insert(*OpI); // this definition kills any uses
}
// do for implicit operands as well
for ( unsigned i=0; i < MInst->getNumImplicitRefs(); ++i) {
if (MInst->implicitRefIsDefined(i))
- remove(MInst->getImplicitRef(i));
+ erase(MInst->getImplicitRef(i));
}
@@ -26,12 +26,12 @@ void LiveVarSet::applyTranferFuncForMInst(const MachineInstr *MInst) {
if ((*OpI)->getType()->isLabelType()) continue; // don't process labels
if (!OpI.isDef()) // add only if this operand is a use
- add(*OpI); // An operand is a use - so add to use set
+ insert(*OpI); // An operand is a use - so add to use set
}
// do for implicit operands as well
for (unsigned i=0; i < MInst->getNumImplicitRefs(); ++i) {
if (!MInst->implicitRefIsDefined(i))
- add(MInst->getImplicitRef(i));
+ insert(MInst->getImplicitRef(i));
}
}