From ca626922bc381803bc36b4023895de50af153b39 Mon Sep 17 00:00:00 2001 From: Nick Hildenbrandt Date: Wed, 2 Oct 2002 21:14:33 +0000 Subject: [PATCH] I was wrong on the removing of those references on the last commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4023 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 3 +++ lib/Target/CBackend/Writer.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 3fec7a407bb..645832cd359 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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()); } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 3fec7a407bb..645832cd359 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -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()); } -- 2.34.1