diff options
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index a14f6303bd5..b066b6aa2b5 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/utils/TableGen/CodeGenTarget.h @@ -145,6 +145,10 @@ public: if (Instructions.empty()) ReadInstructions(); return Instructions; } + std::map<std::string, CodeGenInstruction> &getInstructions() { + if (Instructions.empty()) ReadInstructions(); + return Instructions; + } CodeGenInstruction &getInstruction(const std::string &Name) const { const std::map<std::string, CodeGenInstruction> &Insts = getInstructions(); |

