mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
005cbce20e
commit
ca626922bc
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user