diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-08-22 06:07:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-08-22 06:07:19 +0000 |
commit | 96601ca332ab388754ca4673be8973396fea2ddd (patch) | |
tree | cbcd5cd376fac9adff0f9683e79512d652c0159d /lib/CodeGen/ScheduleDAGPrinter.cpp | |
parent | df8de92083e9cc97999e9f2f7bc7ef1df9ac6258 (diff) | |
download | external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.zip external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.tar.gz external_llvm-96601ca332ab388754ca4673be8973396fea2ddd.tar.bz2 |
Add a getName function to MachineFunction. Use it in places that previously did getFunction()->getName(). Remove includes of Function.h that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/ScheduleDAGPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/ScheduleDAGPrinter.cpp b/lib/CodeGen/ScheduleDAGPrinter.cpp index 38feee9..6e781b1 100644 --- a/lib/CodeGen/ScheduleDAGPrinter.cpp +++ b/lib/CodeGen/ScheduleDAGPrinter.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Constants.h" -#include "llvm/Function.h" #include "llvm/Assembly/Writer.h" #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/CodeGen/MachineConstantPool.h" @@ -35,7 +34,7 @@ namespace llvm { DOTGraphTraits (bool isSimple=false) : DefaultDOTGraphTraits(isSimple) {} static std::string getGraphName(const ScheduleDAG *G) { - return G->MF.getFunction()->getName(); + return G->MF.getName(); } static bool renderGraphFromBottomUp() { |