projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c63e03
)
Eliminate an explicit use of the LLVM basic block, using getParent instead,
author
Chris Lattner
<sabre@nondot.org>
Mon, 24 May 2004 03:44:52 +0000
(
03:44
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineBasicBlock.cpp
b/lib/CodeGen/MachineBasicBlock.cpp
index eccf3895761394f3f193aa00ad99fd9c49cf66e7..64f735c48e63bd6d685e2d31dbffea775c1208dc 100644
(file)
--- a/
lib/CodeGen/MachineBasicBlock.cpp
+++ b/
lib/CodeGen/MachineBasicBlock.cpp
@@
-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());
}
}