[llvm-commits] CVS: llvm/utils/TableGen/AsmWriterEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 14 16:14:14 PDT 2006
Changes in directory llvm/utils/TableGen:
AsmWriterEmitter.cpp updated: 1.29 -> 1.30
---
Log message:
The generated index array should be const.
---
Diffs of the changes: (+1 -1)
AsmWriterEmitter.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/utils/TableGen/AsmWriterEmitter.cpp
diff -u llvm/utils/TableGen/AsmWriterEmitter.cpp:1.29 llvm/utils/TableGen/AsmWriterEmitter.cpp:1.30
--- llvm/utils/TableGen/AsmWriterEmitter.cpp:1.29 Fri Jul 14 17:59:11 2006
+++ llvm/utils/TableGen/AsmWriterEmitter.cpp Fri Jul 14 18:14:02 2006
@@ -362,7 +362,7 @@
std::string AggregateString;
AggregateString += '\0';
- O << " static unsigned short OpStrIdxs[] = {\n";
+ O << " static const unsigned short OpStrIdxs[] = {\n";
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i) {
AsmWriterInst *AWI = CGIAWIMap[NumberedInstructions[i]];
unsigned Idx;
More information about the llvm-commits
mailing list