summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-01 02:15:23 +0000
committerChris Lattner <sabre@nondot.org>2010-11-01 02:15:23 +0000
commita397716081cbe16250ce937ea252b65d7ba5fa94 (patch)
tree571d99f317c98203a41a9586836feaea3cc2475a /llvm/utils/TableGen/CodeGenInstruction.cpp
parent517dc95d474ab4d355a2a52484e4b1ddb55e08dd (diff)
downloadbcm5719-llvm-a397716081cbe16250ce937ea252b65d7ba5fa94.tar.gz
bcm5719-llvm-a397716081cbe16250ce937ea252b65d7ba5fa94.zip
eliminate the old InstFormatName which is always "AsmString",
simplify CodeGenInstruction. No functionality change. llvm-svn: 117891
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index f7b45e243a4..41a27cea3dd 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -95,9 +95,9 @@ static void ParseConstraints(const std::string &CStr, CodeGenInstruction *I) {
}
}
-CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
- : TheDef(R), AsmString(AsmStr) {
+CodeGenInstruction::CodeGenInstruction(Record *R) : TheDef(R) {
Namespace = R->getValueAsString("Namespace");
+ AsmString = R->getValueAsString("AsmString");
isReturn = R->getValueAsBit("isReturn");
isBranch = R->getValueAsBit("isBranch");
OpenPOWER on IntegriCloud