summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugVariables.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
commitc8c2920a3f4f6390882aadc21ad66ffe72a2bce6 (patch)
tree2c5a546593bd97647a78bcdc442bf1daf316d332 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent67cc06366cdb20795d21c31f89624d81e97af799 (diff)
downloadbcm5719-llvm-c8c2920a3f4f6390882aadc21ad66ffe72a2bce6.tar.gz
bcm5719-llvm-c8c2920a3f4f6390882aadc21ad66ffe72a2bce6.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). llvm-svn: 162367
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index d631726538e..defc1279ec8 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -687,8 +687,7 @@ bool LDVImpl::runOnMachineFunction(MachineFunction &mf) {
clear();
LS.initialize(mf);
DEBUG(dbgs() << "********** COMPUTING LIVE DEBUG VARIABLES: "
- << ((Value*)mf.getFunction())->getName()
- << " **********\n");
+ << mf.getName() << " **********\n");
bool Changed = collectDebugValues(mf);
computeIntervals();
OpenPOWER on IntegriCloud