summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-14 23:14:02 +0000
committerChris Lattner <sabre@nondot.org>2006-07-14 23:14:02 +0000
commit45fcadc9f0daec35a48d5346b49effe03bb42237 (patch)
tree65bc2fb688254b6b695a2adcf9d87fc1e849ad34 /llvm
parent436c2dd92712e06419fb80cc5db6b278972c4129 (diff)
downloadbcm5719-llvm-45fcadc9f0daec35a48d5346b49effe03bb42237.tar.gz
bcm5719-llvm-45fcadc9f0daec35a48d5346b49effe03bb42237.zip
The generated index array should be const.
llvm-svn: 29155
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/AsmWriterEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index 2cd17d95fd7..c168a914ec7 100644
--- a/llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud