summaryrefslogtreecommitdiff
path: root/utils/TableGen/X86DisassemblerTables.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-07-31 06:15:39 +0000
committerCraig Topper <craig.topper@gmail.com>2012-07-31 06:15:39 +0000
commit19dbe2f5f0db6b236e76550912eff9cc2a77bca8 (patch)
tree19c05bfe88b84ddca812c17198a7026411cd4d6b /utils/TableGen/X86DisassemblerTables.cpp
parentde9e333e18bbae2a29043deeb8e522cc0fa09036 (diff)
downloadllvm-19dbe2f5f0db6b236e76550912eff9cc2a77bca8.tar.gz
llvm-19dbe2f5f0db6b236e76550912eff9cc2a77bca8.tar.bz2
llvm-19dbe2f5f0db6b236e76550912eff9cc2a77bca8.tar.xz
Use uint8_t to store the InstructionContext table. Saves 768 bytes of static data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r--utils/TableGen/X86DisassemblerTables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp
index c19520d317..749557b2d0 100644
--- a/utils/TableGen/X86DisassemblerTables.cpp
+++ b/utils/TableGen/X86DisassemblerTables.cpp
@@ -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++;