mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
Code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
181436f11b
commit
b0cdabb6c2
@ -70,7 +70,7 @@ class GraphWriter {
|
|||||||
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i) {
|
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i) {
|
||||||
std::string label = DTraits.getEdgeSourceLabel(Node, EI);
|
std::string label = DTraits.getEdgeSourceLabel(Node, EI);
|
||||||
|
|
||||||
if (label == "")
|
if (label.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
hasEdgeSourceLabels = true;
|
hasEdgeSourceLabels = true;
|
||||||
@ -78,7 +78,7 @@ class GraphWriter {
|
|||||||
if (i)
|
if (i)
|
||||||
O << "|";
|
O << "|";
|
||||||
|
|
||||||
O << "<s" << i << ">" << DTraits.getEdgeSourceLabel(Node, EI);
|
O << "<s" << i << ">" << label;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EI != EE && hasEdgeSourceLabels)
|
if (EI != EE && hasEdgeSourceLabels)
|
||||||
@ -235,7 +235,7 @@ public:
|
|||||||
DestPort = static_cast<int>(Offset);
|
DestPort = static_cast<int>(Offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DTraits.getEdgeSourceLabel(Node, EI) == "")
|
if (DTraits.getEdgeSourceLabel(Node, EI).empty())
|
||||||
edgeidx = -1;
|
edgeidx = -1;
|
||||||
|
|
||||||
emitEdge(static_cast<const void*>(Node), edgeidx,
|
emitEdge(static_cast<const void*>(Node), edgeidx,
|
||||||
|
Loading…
Reference in New Issue
Block a user