summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-05 19:31:28 +0000
committerDan Gohman <gohman@apple.com>2009-01-05 19:31:28 +0000
commit1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa (patch)
tree6df78d8d5bd2ed361f54876ee398857c6efc6040 /utils
parente520273172b530dbf3beca445d3a7577262b9361 (diff)
downloadllvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.tar.gz
llvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.tar.bz2
llvm-1eb49a0a5e628c8ed3f37ef14a7c9917ee17b0fa.tar.xz
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')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index ed807b308a..2c6b6dae30 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) {