diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-23 09:10:44 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-23 09:10:44 +0000 |
commit | de0a4fbf3b8c6949d6cb0bf0e191736a3c5c2ab7 (patch) | |
tree | d3ad99c0bb76d3468096dc666eb97359e5fc2829 /llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h | |
parent | aa19ee17c09874a7c8dbc548b94aa1d0d6aeb453 (diff) | |
download | bcm5719-llvm-de0a4fbf3b8c6949d6cb0bf0e191736a3c5c2ab7.tar.gz bcm5719-llvm-de0a4fbf3b8c6949d6cb0bf0e191736a3c5c2ab7.zip |
Make the disassembler tables const so they end up in read-only memory.
llvm-svn: 117206
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h')
-rw-r--r-- | llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h index 28ba86b03fe..4f4fbcdd394 100644 --- a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h +++ b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h @@ -24,7 +24,7 @@ extern "C" { const char* name; #define INSTRUCTION_IDS \ - InstrUID* instructionIDs; + const InstrUID *instructionIDs; #include "X86DisassemblerDecoderCommon.h" @@ -423,7 +423,7 @@ struct InternalInstruction { /* The instruction ID, extracted from the decode table */ uint16_t instructionID; /* The specifier for the instruction, from the instruction info table */ - struct InstructionSpecifier* spec; + const struct InstructionSpecifier *spec; /* state for additional bytes, consumed during operand decode. Pattern: consumed___ indicates that the byte was already consumed and does not |