hopefully address PR3379 by making the P modifier work in x86 inline asm.
authorChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 22:33:40 +0000 (22:33 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 22:33:40 +0000 (22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62887 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

index df0b107f9d84b4446cc6ccf1f338098da9a1722c..e09411a51764dcf7537ef3dde3103bc3765491f9 100644 (file)
@@ -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);