commit | 56b94c52c9bf0342106ca7d274b9bb469d5ef619 | [log] [tgz] |
---|---|---|
author | Andrew Trick <atrick@apple.com> | Wed Mar 07 00:18:22 2012 +0000 |
committer | Andrew Trick <atrick@apple.com> | Wed Mar 07 00:18:22 2012 +0000 |
tree | 8142fc1ee1e1404cd0b6961354d97eb3f0e7e3f4 | |
parent | 8ceaa660bfec72249976c1f411db7f40cbc438bb [diff] [blame] |
Cleanup in preparation for misched: Move DAG visualization logic. Soon, ScheduleDAG will not refer to the BB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152177 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index 71f07d6..c5c5bcd 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@ -800,3 +800,8 @@ InsertPos = Emitter.getInsertPos(); return BB; } + +/// Return the basic block label. +std::string ScheduleDAGSDNodes::getDAGName() const { + return "sunit-dag." + BB->getFullName(); +}