[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp
Misha Brukman
brukman at cs.uiuc.edu
Mon Oct 28 14:01:03 PST 2002
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.25 -> 1.26
---
Log message:
Replaced uses of deprecated `MachineFunction::get(BasicBlock *BB)'.
---
Diffs of the changes:
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.25 llvm/lib/CodeGen/MachineFunction.cpp:1.26
--- llvm/lib/CodeGen/MachineFunction.cpp:1.25 Mon Oct 28 00:01:57 2002
+++ llvm/lib/CodeGen/MachineFunction.cpp Mon Oct 28 14:00:19 2002
@@ -72,21 +72,6 @@
}
-// get - This deprecated static method returns the MachineBasicBlock object
-// for the specified BasicBlock.
-//
-MachineBasicBlock& MachineBasicBlock::get(const BasicBlock *BB) {
- const Function *F = BB->getParent();
- MachineFunction &MF = MachineFunction::get(F);
-
- for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
- if (I->getBasicBlock() == BB)
- return *I;
- assert(0 && "MachineBasicBlock object not found for specified block!");
- return get(BB);
-}
-
-
//===---------------------------------------------------------------------===//
// MachineFunction implementation
//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list