mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
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:
parent
6357caec78
commit
7044cce1a3
@ -2023,7 +2023,7 @@ static void EmitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
|
||||
// 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 @@ static void EmitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
|
||||
}
|
||||
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 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
// 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 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
||||
|
||||
OS << "};\n\n";
|
||||
|
||||
OS << "const char *MatchEntry::MnemonicTable =\n";
|
||||
OS << "const char *const MatchEntry::MnemonicTable =\n";
|
||||
StringTable.EmitString(OS);
|
||||
OS << ";\n\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user