diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-07 04:57:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-07 04:57:31 +0000 |
commit | af3eb7c7583555ea5fd08e99f28b0042811e4dc2 (patch) | |
tree | c66390dce32f5f54ceff5671a4c981902a2a8d6f /utils/TableGen/CodeGenInstruction.cpp | |
parent | 7358c193fd2c7e6cc844f72e2203cbdb7692759f (diff) |
the name field of instructions is never set to a non-empty string,
just unconditionally use the def name of the instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp index 4d8693777d..ea01d1b0e2 100644 --- a/utils/TableGen/CodeGenInstruction.cpp +++ b/utils/TableGen/CodeGenInstruction.cpp @@ -76,7 +76,6 @@ static void ParseConstraints(const std::string &CStr, CodeGenInstruction *I) { CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) : TheDef(R), AsmString(AsmStr) { - Name = R->getValueAsString("Name"); Namespace = R->getValueAsString("Namespace"); isReturn = R->getValueAsBit("isReturn"); @@ -214,14 +213,6 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) } } -/// getName - Return the contents of the instruction Name field if set, -/// otherwise return the name of the def. -std::string CodeGenInstruction::getName() const { - if (!Name.empty()) return Name; - return TheDef->getName(); -} - - /// getOperandNamed - Return the index of the operand with the specified /// non-empty name. If the instruction does not have an operand with the /// specified name, throw an exception. |