Eliminate an explicit use of the LLVM basic block, using getParent instead,
which simplifies the code
llvm-svn: 13707
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index eccf389..64f735c4 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -97,6 +97,6 @@
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());
}
}