The generated index array should be const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-07-14 23:14:02 +00:00
parent efb9b813fa
commit fb5115e84c

View File

@ -362,7 +362,7 @@ void AsmWriterEmitter::run(std::ostream &O) {
std::string AggregateString;
AggregateString += '\0';
O << " static unsigned short OpStrIdxs[] = {\n";
O << " static const unsigned short OpStrIdxs[] = {\n";
for (unsigned i = 0, e = NumberedInstructions.size(); i != e; ++i) {
AsmWriterInst *AWI = CGIAWIMap[NumberedInstructions[i]];
unsigned Idx;