forked from OSchip/llvm-project
parent
939c828604
commit
8def6e3daf
|
@ -35,7 +35,8 @@ namespace llvm {
|
|||
template<>
|
||||
struct DOTGraphTraits<SelectionDAG*> : public DefaultDOTGraphTraits {
|
||||
|
||||
DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {}
|
||||
explicit DOTGraphTraits(bool isSimple=false) :
|
||||
DefaultDOTGraphTraits(isSimple) {}
|
||||
|
||||
static bool hasEdgeDestLabels() {
|
||||
return true;
|
||||
|
@ -251,8 +252,7 @@ void SelectionDAG::setSubgraphColor(SDNode *N, const char *Color) {
|
|||
// Visually mark that we hit the limit
|
||||
if (strcmp(Color, "red") == 0) {
|
||||
setSubgraphColorHelper(N, "blue", visited, 0, printed);
|
||||
}
|
||||
else if (strcmp(Color, "yellow") == 0) {
|
||||
} else if (strcmp(Color, "yellow") == 0) {
|
||||
setSubgraphColorHelper(N, "green", visited, 0, printed);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue