diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-05 19:31:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-05 19:31:28 +0000 |
commit | 1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa (patch) | |
tree | 6df78d8d5bd2ed361f54876ee398857c6efc6040 /utils/TableGen | |
parent | e520273172b530dbf3beca445d3a7577262b9361 (diff) | |
download | external_llvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.zip external_llvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.tar.gz external_llvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.tar.bz2 |
Delete an unused variable and simplify the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index ed807b3..2c6b6da 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1183,16 +1183,13 @@ public: ");"); } - if (FoldedChains.size() > 0) { - std::string Code; - for (unsigned j = 0, e = FoldedChains.size(); j < e; j++) { - ReplaceFroms.push_back("SDValue(" + - FoldedChains[j].first + ".getNode(), " + - utostr(FoldedChains[j].second) + - ")"); - ReplaceTos.push_back("SDValue(ResNode, " + - utostr(NumResults+NumDstRegs) + ")"); - } + for (unsigned j = 0, e = FoldedChains.size(); j < e; j++) { + ReplaceFroms.push_back("SDValue(" + + FoldedChains[j].first + ".getNode(), " + + utostr(FoldedChains[j].second) + + ")"); + ReplaceTos.push_back("SDValue(ResNode, " + + utostr(NumResults+NumDstRegs) + ")"); } if (NodeHasOutFlag) { |