diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-12 18:15:39 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-12 18:15:39 +0000 |
commit | a065200eaf71248133470caf03eefea449fff7b4 (patch) | |
tree | aa596d8d4a5d84915e6558bf30b20b547056bc68 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | 80b8a62fda56179b00fe463ae55d712aa8abefec (diff) | |
download | external_llvm-a065200eaf71248133470caf03eefea449fff7b4.zip external_llvm-a065200eaf71248133470caf03eefea449fff7b4.tar.gz external_llvm-a065200eaf71248133470caf03eefea449fff7b4.tar.bz2 |
Re-apply 66024 with fixes: 1. Fixed indirect call to immediate address assembly. 2. Fixed JIT encoding by making the address pc-relative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 8020fb1..810f993 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -308,8 +308,9 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo, } case MachineOperand::MO_Immediate: - if (!Modifier || - (strcmp(Modifier, "debug") && strcmp(Modifier, "mem"))) + if (!Modifier || (strcmp(Modifier, "debug") && + strcmp(Modifier, "mem") && + strcmp(Modifier, "call"))) O << '$'; O << MO.getImm(); return; |