summaryrefslogtreecommitdiff
path: root/utils/TableGen/StringToOffsetTable.h
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 /utils/TableGen/StringToOffsetTable.h
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 'utils/TableGen/StringToOffsetTable.h')
-rw-r--r--utils/TableGen/StringToOffsetTable.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/utils/TableGen/StringToOffsetTable.h b/utils/TableGen/StringToOffsetTable.h
index 6d528a2b0a..803f5bd5cf 100644
--- a/utils/TableGen/StringToOffsetTable.h
+++ b/utils/TableGen/StringToOffsetTable.h
@@ -40,9 +40,6 @@ public:
}
void EmitString(raw_ostream &O) {
- assert(AggregateString.size() <= 65536 &&
- "Aggregate string too large to be portable");
-
// Escape the string.
SmallString<256> Str;
raw_svector_ostream(Str).write_escaped(AggregateString);