[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Nicholas Hildenbrandt
hldnbrnd at cs.uiuc.edu
Wed Oct 2 16:15:01 PDT 2002
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.58 -> 1.59
---
Log message:
I was wrong on the removing of those references on the last commit.
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.58 llvm/lib/CWriter/Writer.cpp:1.59
--- llvm/lib/CWriter/Writer.cpp:1.58 Wed Oct 2 13:34:51 2002
+++ llvm/lib/CWriter/Writer.cpp Wed Oct 2 16:14:33 2002
@@ -1019,16 +1019,19 @@
}
void CWriter::visitLoadInst(LoadInst &I) {
+ Out << "*";
writeOperand(I.getOperand(0));
}
void CWriter::visitStoreInst(StoreInst &I) {
+ Out << "*";
writeOperand(I.getPointerOperand());
Out << " = ";
writeOperand(I.getOperand(0));
}
void CWriter::visitGetElementPtrInst(GetElementPtrInst &I) {
+ Out << "&";
printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end());
}
More information about the llvm-commits
mailing list