TableGen: Add LLVM_READONLY to generated InstrMapping functions

These just read from a generated table.

llvm-svn: 248473
This commit is contained in:
Matt Arsenault 2015-09-24 07:51:20 +00:00
parent cab64f1c75
commit b12c0d9e38
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ void MapTableEmitter::emitTablesWithFunc(raw_ostream &OS) {
ListInit *ColFields = InstrMapDesc.getColFields();
const std::vector<ListInit*> &ValueCols = InstrMapDesc.getValueCols();
OS << "// "<< InstrMapDesc.getName() << "\n";
OS << "// "<< InstrMapDesc.getName() << "\nLLVM_READONLY\n";
OS << "int "<< InstrMapDesc.getName() << "(uint16_t Opcode";
if (ValueCols.size() > 1) {
for (Init *CF : ColFields->getValues()) {