aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenTarget.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-19 00:18:23 +0000
committerChris Lattner <sabre@nondot.org>2010-03-19 00:18:23 +0000
commitb61e09de6d0cd7241ddc6dee3efef416552eec3b (patch)
tree0ea96d6361d7fb8afa1cd3eac51a1b30d0ca8d6d /utils/TableGen/CodeGenTarget.h
parentc3e6859d8dc9014fee8023497153add9a2148f22 (diff)
don't go through getInstructions().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r--utils/TableGen/CodeGenTarget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h
index d20e868da7..d48e49a8c5 100644
--- a/utils/TableGen/CodeGenTarget.h
+++ b/utils/TableGen/CodeGenTarget.h
@@ -185,6 +185,7 @@ public:
/// getInstructions - Return all of the instructions defined for this target.
///
+private:
const std::map<std::string, CodeGenInstruction> &getInstructions() const {
if (Instructions.empty()) ReadInstructions();
return Instructions;
@@ -193,7 +194,6 @@ 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!");