[llvm-commits] [llvm] r117208 - /llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Oct 23 02:28:42 PDT 2010
Author: d0k
Date: Sat Oct 23 04:28:42 2010
New Revision: 117208
URL: http://llvm.org/viewvc/llvm-project?rev=117208&view=rev
Log:
Constify another 2 disassembler tables.
Modified:
llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp
Modified: llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp?rev=117208&r1=117207&r2=117208&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp (original)
+++ llvm/trunk/utils/TableGen/X86DisassemblerTables.cpp Sat Oct 23 04:28:42 2010
@@ -161,7 +161,7 @@
/// @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::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) {
More information about the llvm-commits
mailing list