From: Chris Lattner Date: Fri, 23 Jan 2009 22:33:40 +0000 (+0000) Subject: hopefully address PR3379 by making the P modifier work in x86 inline asm. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=91387de8cece07e871e02148d62fd3f17d831cad;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index df0b107f9d8..e09411a5176 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);