[llvm-commits] [llvm] r62887 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 23 14:33:40 PST 2009
Author: lattner
Date: Fri Jan 23 16:33:40 2009
New Revision: 62887
URL: http://llvm.org/viewvc/llvm-project?rev=62887&view=rev
Log:
hopefully address PR3379 by making the P modifier work in x86 inline asm.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=62887&r1=62886&r2=62887&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Fri Jan 23 16:33:40 2009
@@ -709,6 +709,9 @@
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);
More information about the llvm-commits
mailing list