diff options
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index 1df74af3622..d20e868da72 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/utils/TableGen/CodeGenTarget.h @@ -193,12 +193,15 @@ public: if (Instructions.empty()) ReadInstructions(); return Instructions; } - +private: CodeGenInstruction &getInstruction(const std::string &Name) const { const std::map<std::string, CodeGenInstruction> &Insts = getInstructions(); assert(Insts.count(Name) && "Not an instruction!"); return const_cast<CodeGenInstruction&>(Insts.find(Name)->second); } +public: + + CodeGenInstruction &getInstruction(const Record *InstRec) const; typedef std::map<std::string, CodeGenInstruction>::const_iterator inst_iterator; |