diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-24 03:41:11 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-24 03:41:11 +0000 |
commit | e3e643f12cc65a70e440bcdbb37b81d5fd022143 (patch) | |
tree | 54694e42b4b5e10c11061b515f85bc18c3c69798 /include/clang/Analysis/CallGraph.h | |
parent | 6d8f56f4799042c897831318326d8be55a879cb8 (diff) |
Add getDecl() to CallGraph and CallGraphNode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/CallGraph.h')
-rw-r--r-- | include/clang/Analysis/CallGraph.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Analysis/CallGraph.h b/include/clang/Analysis/CallGraph.h index 8c437c5261..fabeea38d5 100644 --- a/include/clang/Analysis/CallGraph.h +++ b/include/clang/Analysis/CallGraph.h @@ -49,6 +49,8 @@ public: bool hasCallee() const { return begin() != end(); } std::string getName() const { return F.getPrintableName(); } + + Decl *getDecl(ASTContext &Ctx) const { return F.getDecl(Ctx); } }; class CallGraph { @@ -91,6 +93,8 @@ public: CallGraphNode *getOrInsertFunction(idx::Entity F); + Decl *getDecl(CallGraphNode *Node); + void print(llvm::raw_ostream &os); void dump(); |