From b7551ef115cc25d9abc87cabf67ad1717c8e69c9 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Mon, 28 Oct 2002 20:00:31 +0000 Subject: 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 --- lib/CodeGen/MachineFunction.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/CodeGen/MachineFunction.cpp') 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 //===---------------------------------------------------------------------===// -- cgit v1.2.3-18-g5258