aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 05:19:05 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 05:19:05 +0000
commit2ac190238e88b21e716e2853900b5076c9013410 (patch)
tree96d31431369e0b53130604939ace6898f13b505d /utils/TableGen/CodeGenInstruction.cpp
parent513dbf1af06d0bc530dd6f17da320d2fb40b3a28 (diff)
downloadexternal_llvm-2ac190238e88b21e716e2853900b5076c9013410.zip
external_llvm-2ac190238e88b21e716e2853900b5076c9013410.tar.gz
external_llvm-2ac190238e88b21e716e2853900b5076c9013410.tar.bz2
add fields to the .td files unconditionally, simplifying tblgen a bit.
Switch the ARM backend to use 'let' instead of 'set' with this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--utils/TableGen/CodeGenInstruction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp
index 84a8b91..575852b 100644
--- a/utils/TableGen/CodeGenInstruction.cpp
+++ b/utils/TableGen/CodeGenInstruction.cpp
@@ -71,8 +71,7 @@ CGIOperandList::CGIOperandList(Record *R) : TheDef(R) {
if (Rec->isSubClassOf("Operand")) {
PrintMethod = Rec->getValueAsString("PrintMethod");
// If there is an explicit encoder method, use it.
- if (Rec->getValue("EncoderMethod"))
- EncoderMethod = Rec->getValueAsString("EncoderMethod");
+ EncoderMethod = Rec->getValueAsString("EncoderMethod");
MIOpInfo = Rec->getValueAsDag("MIOperandInfo");
// Verify that MIOpInfo has an 'ops' root value.