[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 27 10:13:16 PDT 2004
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.168 -> 1.169
---
Log message:
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus.
---
Diffs of the changes: (+5 -5)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.168 llvm/lib/Target/CBackend/Writer.cpp:1.169
--- llvm/lib/Target/CBackend/Writer.cpp:1.168 Wed Mar 31 23:28:26 2004
+++ llvm/lib/Target/CBackend/Writer.cpp Tue Apr 27 10:13:11 2004
@@ -955,19 +955,19 @@
// print local variable information for the function
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ++I)
- if (const AllocaInst *AI = isDirectAlloca(*I)) {
+ if (const AllocaInst *AI = isDirectAlloca(&*I)) {
Out << " ";
printType(Out, AI->getAllocatedType(), Mang->getValueName(AI));
Out << "; /* Address exposed local */\n";
- } else if ((*I)->getType() != Type::VoidTy && !isInlinableInst(**I)) {
+ } else if (I->getType() != Type::VoidTy && !isInlinableInst(*I)) {
Out << " ";
- printType(Out, (*I)->getType(), Mang->getValueName(*I));
+ printType(Out, I->getType(), Mang->getValueName(&*I));
Out << ";\n";
if (isa<PHINode>(*I)) { // Print out PHI node temporaries as well...
Out << " ";
- printType(Out, (*I)->getType(),
- Mang->getValueName(*I)+"__PHI_TEMPORARY");
+ printType(Out, I->getType(),
+ Mang->getValueName(&*I)+"__PHI_TEMPORARY");
Out << ";\n";
}
}
More information about the llvm-commits
mailing list