summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-03-07 17:06:40 +0000
committerChad Rosier <mcrosier@apple.com>2012-03-07 17:06:40 +0000
commit3c777947f4fdd94f061f8ac4a118a8db03da88a8 (patch)
treef2f70e9109ab871457c90d6f2f323202dbb5790f /include
parenta2da78852b25ef098c91e5923e8edf205c3bf0c7 (diff)
downloadllvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.tar.gz
llvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.tar.bz2
llvm-3c777947f4fdd94f061f8ac4a118a8db03da88a8.tar.xz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCInstrInfo.h b/include/llvm/MC/MCInstrInfo.h
index 686d4386aa..1d3a36ca7c 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;