I was wrong on the removing of those references on the last commit.
authorNick Hildenbrandt <hldnbrnd@uiuc.edu>
Wed, 2 Oct 2002 21:14:33 +0000 (21:14 +0000)
committerNick Hildenbrandt <hldnbrnd@uiuc.edu>
Wed, 2 Oct 2002 21:14:33 +0000 (21:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4023 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 3fec7a407bb7ab69a915cd460a0bb152c8d613ab..645832cd3595e13fe1d456d2a312020a65fc50c2 100644 (file)
@@ -1019,16 +1019,19 @@ void CWriter::printIndexingExpression(Value *Ptr, User::op_iterator I,
 }
 
 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());
 }
 
index 3fec7a407bb7ab69a915cd460a0bb152c8d613ab..645832cd3595e13fe1d456d2a312020a65fc50c2 100644 (file)
@@ -1019,16 +1019,19 @@ void CWriter::printIndexingExpression(Value *Ptr, User::op_iterator I,
 }
 
 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());
 }