diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-21 08:54:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-21 08:54:24 +0000 |
commit | fbee579ed46016166d88b4defb81a2e7e253062d (patch) | |
tree | 410b07b783b5885d6d242282c2087e6eb0648565 /tools/llvm-prof | |
parent | 4cf95d75c65f37677d306952b0d2306bc6d20b1f (diff) |
Simplify / normalize some uses of Value::getName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-prof')
-rw-r--r-- | tools/llvm-prof/llvm-prof.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index 2b2bbe24102..f807234f82a 100644 --- a/tools/llvm-prof/llvm-prof.cpp +++ b/tools/llvm-prof/llvm-prof.cpp @@ -185,7 +185,7 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) { std::cout << std::setw(3) << i+1 << ". " << std::setw(5) << FunctionCounts[i].second << "/" << TotalExecutions << " " - << FunctionCounts[i].first->getName().c_str() << "\n"; + << FunctionCounts[i].first->getName() << "\n"; } std::set<Function*> FunctionsToPrint; @@ -219,8 +219,8 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) { << Counts[i].second/(double)TotalExecutions*100 << "% " << std::setw(5) << Counts[i].second << "/" << TotalExecutions << "\t" - << F->getName().c_str() << "() - " - << Counts[i].first->getName().c_str() << "\n"; + << F->getName() << "() - " + << Counts[i].first->getName() << "\n"; FunctionsToPrint.insert(F); } |