[llvm-commits] [llvm] r152840 - /llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Mar 15 14:22:53 PDT 2012
Author: stoklund
Date: Thu Mar 15 16:22:53 2012
New Revision: 152840
URL: http://llvm.org/viewvc/llvm-project?rev=152840&view=rev
Log:
Make MnemonicTable const again. That part of r152202 was OK.
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=152840&r1=152839&r2=152840&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Thu Mar 15 16:22:53 2012
@@ -2023,7 +2023,7 @@
// Emit the static custom operand parsing table;
OS << "namespace {\n";
OS << " struct OperandMatchEntry {\n";
- OS << " static const char *MnemonicTable;\n";
+ OS << " static const char *const MnemonicTable;\n";
OS << " unsigned OperandMask;\n";
OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Classes.size())
@@ -2097,7 +2097,7 @@
}
OS << "};\n\n";
- OS << "const char *OperandMatchEntry::MnemonicTable =\n";
+ OS << "const char *const OperandMatchEntry::MnemonicTable =\n";
StringTable.EmitString(OS);
OS << ";\n\n";
@@ -2320,7 +2320,7 @@
// following the mnemonic.
OS << "namespace {\n";
OS << " struct MatchEntry {\n";
- OS << " static const char *MnemonicTable;\n";
+ OS << " static const char *const MnemonicTable;\n";
OS << " uint16_t Opcode;\n";
OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Matchables.size())
@@ -2390,7 +2390,7 @@
OS << "};\n\n";
- OS << "const char *MatchEntry::MnemonicTable =\n";
+ OS << "const char *const MatchEntry::MnemonicTable =\n";
StringTable.EmitString(OS);
OS << ";\n\n";
More information about the llvm-commits
mailing list