aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/CallGraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Analysis/CallGraph.h')
-rw-r--r--include/clang/Analysis/CallGraph.h4
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();