From: Matt Arsenault Date: Fri, 1 Aug 2014 17:00:27 +0000 (+0000) Subject: Make getNamedOperandIdx readonly X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b3cecb1ce6a36c0c9474fc86c10ff06d341442a9;p=oota-llvm.git Make getNamedOperandIdx readonly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214524 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 76f05cea3f7..e625394b8e8 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -266,6 +266,7 @@ void InstrInfoEmitter::emitOperandNameMappings(raw_ostream &OS, OS << "#undef GET_INSTRINFO_NAMED_OPS\n"; OS << "namespace llvm {"; OS << "namespace " << Namespace << " {\n"; + OS << "LLVM_READONLY\n"; OS << "int16_t getNamedOperandIdx(uint16_t Opcode, uint16_t NamedIdx) {\n"; if (!Operands.empty()) { OS << " static const int16_t OperandMap [][" << Operands.size()