Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.287 -> 1.288 --- Log message: Make identity default, and fix PR1020: http://llvm.org/PR1020 --- Diffs of the changes: (+3 -7) Writer.cpp | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.287 llvm/lib/Target/CBackend/Writer.cpp:1.288 --- llvm/lib/Target/CBackend/Writer.cpp:1.287 Tue Nov 28 13:56:02 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Tue Nov 28 16:25:32 2006 @@ -2265,10 +2265,6 @@ assert(c.Codes.size() == 1 && "Too many asm constraint codes to handle"); - //catch numeric constraints - if (c.Codes[0].find_first_not_of("0123456789") >= c.Codes[0].size()) - return c.Codes[0]; - const char** table = 0; //Grab the translation table from TargetAsmInfo if it exists @@ -2291,8 +2287,8 @@ if (c.Codes[0] == table[i]) return table[i+1]; - assert(0 && "Unknown Asm Constraint"); - return ""; + //default is identity + return c.Codes[0]; } //TODO: import logic from AsmPrinter.cpp @@ -2383,7 +2379,7 @@ if (I + 1 != E) Out << ","; } - Out << "\n :" << Clobber.substr(1) << ")\n"; + Out << "\n :" << (Clobber.size() ? Clobber.substr(1) : "") << ")\n"; } void CWriter::visitMallocInst(MallocInst &I) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits