Make MnemonicTable const again. That part of r152202 was OK.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2012-03-15 21:22:53 +00:00
parent 6357caec78
commit 7044cce1a3

View File

@ -2023,7 +2023,7 @@ static void EmitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
// Emit the static custom operand parsing table; // Emit the static custom operand parsing table;
OS << "namespace {\n"; OS << "namespace {\n";
OS << " struct OperandMatchEntry {\n"; OS << " struct OperandMatchEntry {\n";
OS << " static const char *MnemonicTable;\n"; OS << " static const char *const MnemonicTable;\n";
OS << " unsigned OperandMask;\n"; OS << " unsigned OperandMask;\n";
OS << " unsigned Mnemonic;\n"; OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Classes.size()) OS << " " << getMinimalTypeForRange(Info.Classes.size())
@ -2097,7 +2097,7 @@ static void EmitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
} }
OS << "};\n\n"; OS << "};\n\n";
OS << "const char *OperandMatchEntry::MnemonicTable =\n"; OS << "const char *const OperandMatchEntry::MnemonicTable =\n";
StringTable.EmitString(OS); StringTable.EmitString(OS);
OS << ";\n\n"; OS << ";\n\n";
@ -2320,7 +2320,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
// following the mnemonic. // following the mnemonic.
OS << "namespace {\n"; OS << "namespace {\n";
OS << " struct MatchEntry {\n"; OS << " struct MatchEntry {\n";
OS << " static const char *MnemonicTable;\n"; OS << " static const char *const MnemonicTable;\n";
OS << " uint16_t Opcode;\n"; OS << " uint16_t Opcode;\n";
OS << " unsigned Mnemonic;\n"; OS << " unsigned Mnemonic;\n";
OS << " " << getMinimalTypeForRange(Info.Matchables.size()) OS << " " << getMinimalTypeForRange(Info.Matchables.size())
@ -2390,7 +2390,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
OS << "};\n\n"; OS << "};\n\n";
OS << "const char *MatchEntry::MnemonicTable =\n"; OS << "const char *const MatchEntry::MnemonicTable =\n";
StringTable.EmitString(OS); StringTable.EmitString(OS);
OS << ";\n\n"; OS << ";\n\n";