mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
87d9138f01
commit
51c84d14ab
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user