diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-23 22:33:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-23 22:33:40 +0000 |
commit | 91387de8cece07e871e02148d62fd3f17d831cad (patch) | |
tree | cf1115e19d127d778d705bd9722d49df4dfbd8e9 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | e591b202b962de033940aafa6ede385cf824f8ec (diff) | |
download | external_llvm-91387de8cece07e871e02148d62fd3f17d831cad.zip external_llvm-91387de8cece07e871e02148d62fd3f17d831cad.tar.gz external_llvm-91387de8cece07e871e02148d62fd3f17d831cad.tar.bz2 |
hopefully address PR3379 by making the P modifier work in x86 inline asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index df0b107..e09411a 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -709,6 +709,9 @@ bool X86ATTAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, case 'q': // Print SImode register // These only apply to registers, ignore on mem. break; + case 'P': // Don't print @PLT, but do print as memory. + printOperand(MI, OpNo, "mem"); + return false; } } printMemReference(MI, OpNo); |