From b525d54045bb67bd0da48bd6f428393f9350ab65 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Mon, 23 Feb 2004 18:36:38 +0000 Subject: Use MachineBasicBlock::getParent(). llvm-svn: 11756 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 89763ba4f3bc..b9f11e8eb1fb 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -60,8 +60,7 @@ void ilist_traits::transferNodesFromList( MachineBasicBlock::iterator MachineBasicBlock::getFirstTerminator() { - const TargetInstrInfo& TII = MachineFunction::get( - getBasicBlock()->getParent()).getTarget().getInstrInfo(); + const TargetInstrInfo& TII = getParent()->getTarget().getInstrInfo(); iterator I = end(); while (I != begin() && TII.isTerminatorInstr((--I)->getOpcode())); if (I != end() && !TII.isTerminatorInstr(I->getOpcode())) ++I; -- cgit v1.2.3