diff options
author | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:55 +0000 |
commit | d0e098db9cc47ce8d10716a4ba3b77bcc62d5122 (patch) | |
tree | 293992d24e72774ea3af946f73c15ea1f10ef806 | |
parent | 30713d60670ff13b3ebca84e2d923b0044f279b1 (diff) | |
download | bcm5719-llvm-d0e098db9cc47ce8d10716a4ba3b77bcc62d5122.tar.gz bcm5719-llvm-d0e098db9cc47ce8d10716a4ba3b77bcc62d5122.zip |
Code simplification.
llvm-svn: 126786
-rw-r--r-- | llvm/include/llvm/Support/GraphWriter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h index 8e1b0f92faa..ec64f73fe8e 100644 --- a/llvm/include/llvm/Support/GraphWriter.h +++ b/llvm/include/llvm/Support/GraphWriter.h @@ -70,7 +70,7 @@ class GraphWriter { for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i) { std::string label = DTraits.getEdgeSourceLabel(Node, EI); - if (label == "") + if (label.empty()) continue; hasEdgeSourceLabels = true; @@ -78,7 +78,7 @@ class GraphWriter { if (i) O << "|"; - O << "<s" << i << ">" << DTraits.getEdgeSourceLabel(Node, EI); + O << "<s" << i << ">" << label; } if (EI != EE && hasEdgeSourceLabels) @@ -235,7 +235,7 @@ public: DestPort = static_cast<int>(Offset); } - if (DTraits.getEdgeSourceLabel(Node, EI) == "") + if (DTraits.getEdgeSourceLabel(Node, EI).empty()) edgeidx = -1; emitEdge(static_cast<const void*>(Node), edgeidx, |