diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-22 17:35:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-22 17:35:07 +0000 |
commit | a3ac427507e078e683d059820496c3dc52e8cac8 (patch) | |
tree | eaa1d157eb1071a4c5b9cb16b7d8c4dc714e59f8 /utils/TableGen/X86DisassemblerTables.cpp | |
parent | c54ca79854c6dc5b9d337d296a5fae798292f1b9 (diff) | |
download | external_llvm-a3ac427507e078e683d059820496c3dc52e8cac8.zip external_llvm-a3ac427507e078e683d059820496c3dc52e8cac8.tar.gz external_llvm-a3ac427507e078e683d059820496c3dc52e8cac8.tar.bz2 |
Make some symbols static, move classes into anonymous namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r-- | utils/TableGen/X86DisassemblerTables.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index 2176224..8a32f4a 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -365,7 +365,7 @@ void DisassemblerTables::emitContextDecision( uint32_t &i2, ContextDecision &decision, const char* name) const { - o2.indent(i2) << "struct ContextDecision " << name << " = {" << "\n"; + o2.indent(i2) << "static struct ContextDecision " << name << " = {\n"; i2++; o2.indent(i2) << "{ /* opcodeDecisions */" << "\n"; i2++; @@ -392,8 +392,7 @@ void DisassemblerTables::emitContextDecision( void DisassemblerTables::emitInstructionInfo(raw_ostream &o, uint32_t &i) const { - o.indent(i * 2) << "struct InstructionSpecifier "; - o << INSTRUCTIONS_STR << "["; + o.indent(i * 2) << "static struct InstructionSpecifier " INSTRUCTIONS_STR "["; o << InstructionSpecifiers.size(); o << "] = {" << "\n"; @@ -456,8 +455,7 @@ 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) << "InstructionContext "; - o << CONTEXTS_STR << "[256] = {" << "\n"; + o.indent(i * 2) << "static InstructionContext " CONTEXTS_STR "[256] = {\n"; i++; for (index = 0; index < 256; ++index) { |