[llvm-commits] [llvm] r57363 - /llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Fri Oct 10 13:29:51 PDT 2008
Author: asl
Date: Fri Oct 10 15:29:50 2008
New Revision: 57363
URL: http://llvm.org/viewvc/llvm-project?rev=57363&view=rev
Log:
Ignore extra 'r' modifier for now
Modified:
llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp?rev=57363&r1=57362&r2=57363&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcAsmPrinter.cpp Fri Oct 10 15:29:50 2008
@@ -315,8 +315,15 @@
bool SparcAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
unsigned AsmVariant,
const char *ExtraCode) {
- if (ExtraCode && ExtraCode[0])
- return true; // Unknown modifier
+ if (ExtraCode && ExtraCode[0]) {
+ if (ExtraCode[1] != 0) return true; // Unknown modifier.
+
+ switch (ExtraCode[0]) {
+ default: return true; // Unknown modifier.
+ case 'r':
+ break;
+ }
+ }
printOperand(MI, OpNo);
More information about the llvm-commits
mailing list