mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
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:
parent
efb9b813fa
commit
fb5115e84c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user