diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-28 20:00:31 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2002-10-28 20:00:31 +0000 |
commit | b7551ef115cc25d9abc87cabf67ad1717c8e69c9 (patch) | |
tree | 74bf6a9e1554f1bc8e985f5fe139a0b7529bbedc /lib/CodeGen/MachineFunction.cpp | |
parent | d5806ffb40899aca4f3c23442645ed0ef4fa390f (diff) |
Replaced uses of deprecated `MachineFunction::get(BasicBlock *BB)'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 9fb7bbb68e..46202f1f58 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/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 //===---------------------------------------------------------------------===// |