diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-03-07 17:06:40 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-03-07 17:06:40 +0000 |
commit | 3c777947f4fdd94f061f8ac4a118a8db03da88a8 (patch) | |
tree | f2f70e9109ab871457c90d6f2f323202dbb5790f /include | |
parent | a2da78852b25ef098c91e5923e8edf205c3bf0c7 (diff) | |
download | external_llvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.zip external_llvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.tar.gz external_llvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.tar.bz2 |
Revert r152202 as it's causing internal buildbot failures.
Original commit message:
Use uint16_t to store InstrNameIndices in MCInstrInfo. Add asserts to protect
all 16-bit string table offsets. Also make sure the string to offset table
string is not larger than 65536 characters since larger string literals aren't
portable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCInstrInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCInstrInfo.h b/include/llvm/MC/MCInstrInfo.h index 686d438..1d3a36c 100644 --- a/include/llvm/MC/MCInstrInfo.h +++ b/include/llvm/MC/MCInstrInfo.h @@ -25,14 +25,14 @@ namespace llvm { /// class MCInstrInfo { const MCInstrDesc *Desc; // Raw array to allow static init'n - const uint16_t *InstrNameIndices; // Array for name indices in InstrNameData + const unsigned *InstrNameIndices; // Array for name indices in InstrNameData const char *InstrNameData; // Instruction name string pool unsigned NumOpcodes; // Number of entries in the desc array public: /// InitMCInstrInfo - Initialize MCInstrInfo, called by TableGen /// auto-generated routines. *DO NOT USE*. - void InitMCInstrInfo(const MCInstrDesc *D, const uint16_t *NI, const char *ND, + void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, unsigned NO) { Desc = D; InstrNameIndices = NI; |