summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ScheduleDAGPrinter.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-02-27 04:11:03 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-02-27 04:11:03 +0000
commita91f86c49a63f7a37c662c3a9553055bff33a84b (patch)
treeedf10db89b2d9440fa38416db419256b72243bbf /lib/CodeGen/ScheduleDAGPrinter.cpp
parent0aa00f91100fb031cd9cde2562cdc029f4fb26d5 (diff)
downloadllvm-a91f86c49a63f7a37c662c3a9553055bff33a84b.tar.gz
llvm-a91f86c49a63f7a37c662c3a9553055bff33a84b.tar.bz2
llvm-a91f86c49a63f7a37c662c3a9553055bff33a84b.tar.xz
Pass the graph to the DOTGraphTraits.getEdgeAttributes().
This follows the interface of getNodeAttributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/ScheduleDAGPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGPrinter.cpp b/lib/CodeGen/ScheduleDAGPrinter.cpp
index 027f6150e2..4b55a2284f 100644
--- a/lib/CodeGen/ScheduleDAGPrinter.cpp
+++ b/lib/CodeGen/ScheduleDAGPrinter.cpp
@@ -51,7 +51,8 @@ namespace llvm {
/// If you want to override the dot attributes printed for a particular
/// edge, override this method.
static std::string getEdgeAttributes(const SUnit *Node,
- SUnitIterator EI) {
+ SUnitIterator EI,
+ const ScheduleDAG *Graph) {
if (EI.isArtificialDep())
return "color=cyan,style=dashed";
if (EI.isCtrlDep())