mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Print a load of a null pointer (in intel mode) like this:
mov %AX, WORD PTR [0] instead of like this: mov %AX, WORD PTR [] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f2cb3da48
commit
e11a9a93a8
@ -365,7 +365,7 @@ void X86IntelAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op){
|
||||
printOp(DispSpec, true);
|
||||
} else {
|
||||
int DispVal = DispSpec.getImmedValue();
|
||||
if (DispVal) {
|
||||
if (DispVal || (!BaseReg.getReg() && !IndexReg.getReg())) {
|
||||
if (NeedPlus)
|
||||
if (DispVal > 0)
|
||||
O << " + ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user