The generated index array should be const.

llvm-svn: 29155
This commit is contained in:
Chris Lattner 2006-07-14 23:14:02 +00:00
parent 436c2dd927
commit 45fcadc9f0
1 changed files with 1 additions and 1 deletions

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;