Changes in directory llvm/utils/TableGen:

AsmWriterEmitter.cpp updated: 1.43 -> 1.44
---
Log message:

This:
AggregateString += "\0\0";

Doesn't add two nuls to the AggregateString (for obvious reasons), which
broke the asmprinter when the first character of an asm string was not
literal text.



---
Diffs of the changes:  (+3 -2)

 AsmWriterEmitter.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/utils/TableGen/AsmWriterEmitter.cpp
diff -u llvm/utils/TableGen/AsmWriterEmitter.cpp:1.43 
llvm/utils/TableGen/AsmWriterEmitter.cpp:1.44
--- llvm/utils/TableGen/AsmWriterEmitter.cpp:1.43       Tue Sep 26 18:47:10 2006
+++ llvm/utils/TableGen/AsmWriterEmitter.cpp    Wed Sep 27 11:44:09 2006
@@ -484,9 +484,10 @@
   // Build an aggregate string, and build a table of offsets into it.
   std::map<std::string, unsigned> StringOffset;
   std::string AggregateString;
-  AggregateString += "\0\0";
+  AggregateString.push_back(0);  // "\0"
+  AggregateString.push_back(0);  // "\0"
   
-  /// OpcodeInfo - Theis encodes the index of the string to use for the first
+  /// OpcodeInfo - This encodes the index of the string to use for the first
   /// chunk of the output as well as indices used for operand printing.
   std::vector<unsigned> OpcodeInfo;
   



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to