diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-14 23:14:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-14 23:14:02 +0000 |
commit | fb5115e84cba2b55b102528df6ecfdb5d7edcaaf (patch) | |
tree | 9c0459a135b949fa87420e75d41cfec148a4fa29 /utils/TableGen | |
parent | efb9b813fa74d3134dd185df10f6577ceab72bcd (diff) | |
download | external_llvm-fb5115e84cba2b55b102528df6ecfdb5d7edcaaf.zip external_llvm-fb5115e84cba2b55b102528df6ecfdb5d7edcaaf.tar.gz external_llvm-fb5115e84cba2b55b102528df6ecfdb5d7edcaaf.tar.bz2 |
The generated index array should be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 2cd17d9..c168a91 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; |