summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-08-22 17:18:53 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-08-22 17:18:53 +0000
commit986d76d7b3844b9a2f3d01a48975952749267a93 (patch)
tree9f2f2dc15e0c1b7254b05d5828ca83c6a62bd610 /lib/CodeGen/RegAllocFast.cpp
parentd7e2525a6d2a7d1d7c269237df2f9de78f0bc6a2 (diff)
downloadllvm-986d76d7b3844b9a2f3d01a48975952749267a93.tar.gz
llvm-986d76d7b3844b9a2f3d01a48975952749267a93.tar.bz2
llvm-986d76d7b3844b9a2f3d01a48975952749267a93.tar.xz
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/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index 6b3a48eefd..f573d419ea 100644
--- a/lib/CodeGen/RegAllocFast.cpp
+++ b/lib/CodeGen/RegAllocFast.cpp
@@ -1110,8 +1110,7 @@ void RAFast::AllocateBasicBlock() {
///
bool RAFast::runOnMachineFunction(MachineFunction &Fn) {
DEBUG(dbgs() << "********** FAST REGISTER ALLOCATION **********\n"
- << "********** Function: "
- << ((Value*)Fn.getFunction())->getName() << '\n');
+ << "********** Function: " << Fn.getName() << '\n');
MF = &Fn;
MRI = &MF->getRegInfo();
TM = &Fn.getTarget();