diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-23 09:28:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-23 09:28:42 +0000 |
commit | 86c69c570cb03ebdad3e847945a8619347b52d24 (patch) | |
tree | bd9d07a65d0216c06a1213f1bfa1650677e33ad9 /utils/TableGen/X86DisassemblerTables.cpp | |
parent | 4d1dca92bd6d4aad7121e28c7ffc93c0a6a187d7 (diff) | |
download | external_llvm-86c69c570cb03ebdad3e847945a8619347b52d24.zip external_llvm-86c69c570cb03ebdad3e847945a8619347b52d24.tar.gz external_llvm-86c69c570cb03ebdad3e847945a8619347b52d24.tar.bz2 |
Constify another 2 disassembler tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r-- | utils/TableGen/X86DisassemblerTables.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index 76ea320..94797f5 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -161,7 +161,7 @@ void DisassemblerTables::emitOneID(raw_ostream &o, /// @param i - The indentation level for that output stream. static void emitEmptyTable(raw_ostream &o, uint32_t &i) { - o.indent(i * 2) << "static InstrUID modRMEmptyTable[1] = { 0 };" << "\n"; + o.indent(i * 2) << "static const InstrUID modRMEmptyTable[1] = { 0 };\n"; o << "\n"; } @@ -454,7 +454,8 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o, uint32_t &i) void DisassemblerTables::emitContextTable(raw_ostream &o, uint32_t &i) const { uint16_t index; - o.indent(i * 2) << "static InstructionContext " CONTEXTS_STR "[256] = {\n"; + o.indent(i * 2) << "static const InstructionContext " CONTEXTS_STR + "[256] = {\n"; i++; for (index = 0; index < 256; ++index) { |