diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-08-22 17:18:53 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-08-22 17:18:53 +0000 |
commit | 986d76d7b3844b9a2f3d01a48975952749267a93 (patch) | |
tree | 9f2f2dc15e0c1b7254b05d5828ca83c6a62bd610 /lib/CodeGen/EarlyIfConversion.cpp | |
parent | d7e2525a6d2a7d1d7c269237df2f9de78f0bc6a2 (diff) | |
download | external_llvm-986d76d7b3844b9a2f3d01a48975952749267a93.tar.gz external_llvm-986d76d7b3844b9a2f3d01a48975952749267a93.tar.bz2 external_llvm-986d76d7b3844b9a2f3d01a48975952749267a93.zip |
Tidy up a few more uses of MF.getFunction()->getName().
Based on CR feedback from r162301 and Craig Topper's refactoring in r162347
here are a few other places that could use the same API (& in one instance drop
a Function.h dependency).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r-- | lib/CodeGen/EarlyIfConversion.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/EarlyIfConversion.cpp b/lib/CodeGen/EarlyIfConversion.cpp index f9347efdb0..c40c5acf11 100644 --- a/lib/CodeGen/EarlyIfConversion.cpp +++ b/lib/CodeGen/EarlyIfConversion.cpp @@ -18,7 +18,6 @@ #define DEBUG_TYPE "early-ifcvt" #include "MachineTraceMetrics.h" -#include "llvm/Function.h" #include "llvm/ADT/BitVector.h" #include "llvm/ADT/PostOrderIterator.h" #include "llvm/ADT/SetVector.h" @@ -775,8 +774,7 @@ bool EarlyIfConverter::tryConvertIf(MachineBasicBlock *MBB) { bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) { DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n" - << "********** Function: " - << ((Value*)MF.getFunction())->getName() << '\n'); + << "********** Function: " << MF.getName() << '\n'); TII = MF.getTarget().getInstrInfo(); TRI = MF.getTarget().getRegisterInfo(); SchedModel = MF.getTarget().getInstrItineraryData()->SchedModel; |