diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 07:52:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 07:52:21 +0000 |
commit | 4c7c5a1d01d5e35aa6fb7724336c9506a88b6b62 (patch) | |
tree | bd4f2e7866dcae901b5a3dc6d017c5a16d8118a9 /lib/Analysis/CallGraph.cpp | |
parent | 2bcb3439b50c7f227a21d7118a2a76904ec60331 (diff) |
Remove the ASTContext parameter from Entity::getPrintableName().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/CallGraph.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/CallGraph.cpp b/lib/Analysis/CallGraph.cpp index 2530fc0ad7..5605439ea9 100644 --- a/lib/Analysis/CallGraph.cpp +++ b/lib/Analysis/CallGraph.cpp @@ -97,12 +97,11 @@ CallGraphNode *CallGraph::getOrInsertFunction(Entity F) { void CallGraph::print(llvm::raw_ostream &os) { for (iterator I = begin(), E = end(); I != E; ++I) { if (I->second->hasCallee()) { - ASTContext &Ctx = *CallerCtx[I->second]; - os << "function: " << I->first.getPrintableName(Ctx).c_str() + os << "function: " << I->first.getPrintableName() << " calls:\n"; for (CallGraphNode::iterator CI = I->second->begin(), CE = I->second->end(); CI != CE; ++CI) { - os << " " << CI->second->getName(Ctx).c_str(); + os << " " << CI->second->getName().c_str(); } os << '\n'; } |