aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit9caea12bd82d5b0af9f4aa3345c16baedf47b5a8 (patch)
tree02f1f0af7970e46663bc5692e13efa5e3828caaa /llvm/utils/TableGen/X86DisassemblerTables.cpp
parent6f142746e7cca596131d45262884038cd3e08a03 (diff)
downloadllvm-9caea12bd82d5b0af9f4aa3345c16baedf47b5a8.zip
llvm-9caea12bd82d5b0af9f4aa3345c16baedf47b5a8.tar.gz
llvm-9caea12bd82d5b0af9f4aa3345c16baedf47b5a8.tar.bz2
Use uint8_t to store the InstructionContext table. Saves 768 bytes of static data.
llvm-svn: 161034
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r--llvm/utils/TableGen/X86DisassemblerTables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerTables.cpp b/llvm/utils/TableGen/X86DisassemblerTables.cpp
index c19520d..749557b 100644
--- a/llvm/utils/TableGen/X86DisassemblerTables.cpp
+++ b/llvm/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++;