From: Chris Lattner Date: Fri, 14 Jul 2006 23:14:02 +0000 (+0000) Subject: The generated index array should be const. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb5115e84cba2b55b102528df6ecfdb5d7edcaaf;p=oota-llvm.git The generated index array should be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 2cd17d95fd7..c168a914ec7 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -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;