[llvm-commits] [llvm] r108545 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
Dale Johannesen
dalej at apple.com
Fri Jul 16 11:35:46 PDT 2010
Author: johannes
Date: Fri Jul 16 13:35:46 2010
New Revision: 108545
URL: http://llvm.org/viewvc/llvm-project?rev=108545&view=rev
Log:
Accept registers with P modifier. PR 5314.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp?rev=108545&r1=108544&r2=108545&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp Fri Jul 16 13:35:46 2010
@@ -218,6 +218,10 @@
const MachineOperand &MO = MI->getOperand(OpNo);
switch (MO.getType()) {
default: llvm_unreachable("Unknown pcrel immediate operand");
+ case MachineOperand::MO_Register:
+ // pc-relativeness was handled when computing the value in the reg.
+ printOperand(MI, OpNo, O);
+ return;
case MachineOperand::MO_Immediate:
O << MO.getImm();
return;
More information about the llvm-commits
mailing list