summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2002-10-28 20:00:31 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2002-10-28 20:00:31 +0000
commit6be5e92526ba6d4e5a1d4d453c133ffffc329f70 (patch)
treeb9a6427c3ac4021f8cd89127391f58b26fe0cd79 /llvm/lib/CodeGen/MachineFunction.cpp
parent0a304ce24899066f437863a548a7aadaf871ea7c (diff)
downloadbcm5719-llvm-6be5e92526ba6d4e5a1d4d453c133ffffc329f70.tar.gz
bcm5719-llvm-6be5e92526ba6d4e5a1d4d453c133ffffc329f70.zip
Replaced uses of deprecated `MachineFunction::get(BasicBlock *BB)'.
llvm-svn: 4351
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 9fb7bbb68e5..46202f1f58d 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -72,21 +72,6 @@ Pass *createMachineCodeDestructionPass() {
}
-// 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
//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud