summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 04:57:31 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 04:57:31 +0000
commit6f8713decb0b64255281ba1cfcd7e68fb434adc4 (patch)
treeab313e453cd1dbd47bf4746331c3b901830716d5 /llvm/utils/TableGen/CodeGenInstruction.cpp
parent607796210194b1b45b610ef0200391034923eb3f (diff)
downloadbcm5719-llvm-6f8713decb0b64255281ba1cfcd7e68fb434adc4.tar.gz
bcm5719-llvm-6f8713decb0b64255281ba1cfcd7e68fb434adc4.zip
the name field of instructions is never set to a non-empty string,
just unconditionally use the def name of the instruction. llvm-svn: 45684
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index 4d8693777df..ea01d1b0e29 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud