[llvm] r214524 - Make getNamedOperandIdx readonly
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Aug 1 10:00:28 PDT 2014
Author: arsenm
Date: Fri Aug 1 12:00:27 2014
New Revision: 214524
URL: http://llvm.org/viewvc/llvm-project?rev=214524&view=rev
Log:
Make getNamedOperandIdx readonly
Modified:
llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=214524&r1=214523&r2=214524&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Fri Aug 1 12:00:27 2014
@@ -266,6 +266,7 @@ void InstrInfoEmitter::emitOperandNameMa
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()
More information about the llvm-commits
mailing list