summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-14 23:15:07 +0000
committerDan Gohman <gohman@apple.com>2008-04-14 23:15:07 +0000
commit89bf0a6b05c8c353890c88ed1c10dec96a9a7bd8 (patch)
tree48f92bebf84631bcffd1dbc86979140743f07a19 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent0a9371de6d4ea2daec64a8be7be4b3bda869f6ab (diff)
downloadllvm-89bf0a6b05c8c353890c88ed1c10dec96a9a7bd8.tar.gz
llvm-89bf0a6b05c8c353890c88ed1c10dec96a9a7bd8.tar.bz2
llvm-89bf0a6b05c8c353890c88ed1c10dec96a9a7bd8.tar.xz
In -view-sunit-dags, display "special" chain dependencies as cyan
instead of blue to distinguish them from regular dependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 7779acce63..b07b86eb94 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -283,6 +283,8 @@ namespace llvm {
/// edge, override this method.
template<typename EdgeIter>
static std::string getEdgeAttributes(const void *Node, EdgeIter EI) {
+ if (EI.isSpecialDep())
+ return "color=cyan,style=dashed";
if (EI.isCtrlDep())
return "color=blue,style=dashed";
return "";