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 | c8c2920a3f4f6390882aadc21ad66ffe72a2bce6 (patch) | |
tree | 2c5a546593bd97647a78bcdc442bf1daf316d332 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 67cc06366cdb20795d21c31f89624d81e97af799 (diff) | |
download | llvm-c8c2920a3f4f6390882aadc21ad66ffe72a2bce6.zip llvm-c8c2920a3f4f6390882aadc21ad66ffe72a2bce6.tar.gz llvm-c8c2920a3f4f6390882aadc21ad66ffe72a2bce6.tar.bz2 |
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).
llvm-svn: 162367
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 6b3a48e..f573d41 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/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(); |