OSDN Git Service

Use uint8_t to store the InstructionContext table. Saves 768 bytes of static data.
authorCraig Topper <craig.topper@gmail.com>
Tue, 31 Jul 2012 06:15:39 +0000 (06:15 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 31 Jul 2012 06:15:39 +0000 (06:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161034 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/X86DisassemblerTables.cpp

index c19520d..749557b 100644 (file)
@@ -484,7 +484,7 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
 }
 
 void DisassemblerTables::emitContextTable(raw_ostream &o, unsigned &i) const {
-  o.indent(i * 2) << "static const InstructionContext " CONTEXTS_STR
+  o.indent(i * 2) << "static const uint8_t " CONTEXTS_STR
                      "[256] = {\n";
   i++;