mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Make getNamedOperandIdx readonly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -266,6 +266,7 @@ void InstrInfoEmitter::emitOperandNameMappings(raw_ostream &OS,
|
|||||||
OS << "#undef GET_INSTRINFO_NAMED_OPS\n";
|
OS << "#undef GET_INSTRINFO_NAMED_OPS\n";
|
||||||
OS << "namespace llvm {";
|
OS << "namespace llvm {";
|
||||||
OS << "namespace " << Namespace << " {\n";
|
OS << "namespace " << Namespace << " {\n";
|
||||||
|
OS << "LLVM_READONLY\n";
|
||||||
OS << "int16_t getNamedOperandIdx(uint16_t Opcode, uint16_t NamedIdx) {\n";
|
OS << "int16_t getNamedOperandIdx(uint16_t Opcode, uint16_t NamedIdx) {\n";
|
||||||
if (!Operands.empty()) {
|
if (!Operands.empty()) {
|
||||||
OS << " static const int16_t OperandMap [][" << Operands.size()
|
OS << " static const int16_t OperandMap [][" << Operands.size()
|
||||||
|
Reference in New Issue
Block a user