projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085c995
)
Print a load of a null pointer like this:
author
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jan 2005 04:05:19 +0000
(
04:05
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 12 Jan 2005 04:05:19 +0000
(
04:05
+0000)
movw 0, %ax
instead of like this:
movw , %ax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19500
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86AsmPrinter.cpp
b/lib/Target/X86/X86AsmPrinter.cpp
index f91a170098f89a8d03983207c66700272edc619b..7f47adfe27d006cd4408bfdbaf6e9cafa5eedd96 100644
(file)
--- a/
lib/Target/X86/X86AsmPrinter.cpp
+++ b/
lib/Target/X86/X86AsmPrinter.cpp
@@
-563,7
+563,7
@@
void X86ATTAsmPrinter::printMemReference(const MachineInstr *MI, unsigned Op){
printOp(DispSpec, true);
} else {
int DispVal = DispSpec.getImmedValue();
- if (DispVal)
+ if (DispVal
|| (!IndexReg.getReg() && !BaseReg.getReg())
)
O << DispVal;
}