Eliminate an explicit use of the LLVM basic block, using getParent instead,
authorChris Lattner <sabre@nondot.org>
Mon, 24 May 2004 03:44:52 +0000 (03:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 May 2004 03:44:52 +0000 (03:44 +0000)
which simplifies the code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13707 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBasicBlock.cpp

index eccf3895761394f3f193aa00ad99fd9c49cf66e7..64f735c48e63bd6d685e2d31dbffea775c1208dc 100644 (file)
@@ -97,6 +97,6 @@ void MachineBasicBlock::print(std::ostream &OS) const
     OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
     for (const_iterator I = begin(); I != end(); ++I) {
         OS << "\t";
-        I->print(OS, MachineFunction::get(LBB->getParent()).getTarget());
+        I->print(OS, getParent()->getTarget());
     }
 }