Removed unneeded reference and dereferences.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Hildenbrandt 2002-10-02 18:34:51 +00:00
parent 87d9138f01
commit 51c84d14ab
2 changed files with 0 additions and 6 deletions

View File

@ -1019,19 +1019,16 @@ void CWriter::printIndexingExpression(Value *Ptr, User::op_iterator I,
} }
void CWriter::visitLoadInst(LoadInst &I) { void CWriter::visitLoadInst(LoadInst &I) {
//Out << "*";
writeOperand(I.getOperand(0)); writeOperand(I.getOperand(0));
} }
void CWriter::visitStoreInst(StoreInst &I) { void CWriter::visitStoreInst(StoreInst &I) {
Out << "*";
writeOperand(I.getPointerOperand()); writeOperand(I.getPointerOperand());
Out << " = "; Out << " = ";
writeOperand(I.getOperand(0)); writeOperand(I.getOperand(0));
} }
void CWriter::visitGetElementPtrInst(GetElementPtrInst &I) { void CWriter::visitGetElementPtrInst(GetElementPtrInst &I) {
//Out << "&";
printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end()); printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end());
} }

View File

@ -1019,19 +1019,16 @@ void CWriter::printIndexingExpression(Value *Ptr, User::op_iterator I,
} }
void CWriter::visitLoadInst(LoadInst &I) { void CWriter::visitLoadInst(LoadInst &I) {
//Out << "*";
writeOperand(I.getOperand(0)); writeOperand(I.getOperand(0));
} }
void CWriter::visitStoreInst(StoreInst &I) { void CWriter::visitStoreInst(StoreInst &I) {
Out << "*";
writeOperand(I.getPointerOperand()); writeOperand(I.getPointerOperand());
Out << " = "; Out << " = ";
writeOperand(I.getOperand(0)); writeOperand(I.getOperand(0));
} }
void CWriter::visitGetElementPtrInst(GetElementPtrInst &I) { void CWriter::visitGetElementPtrInst(GetElementPtrInst &I) {
//Out << "&";
printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end()); printIndexingExpression(I.getPointerOperand(), I.idx_begin(), I.idx_end());
} }