aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/CallGraph.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-07-02 06:39:46 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-07-02 06:39:46 +0000
commit6d956dfcc79159808f46493dc5754971c76593aa (patch)
tree005894b64dad061cb3d57c8d418e2553be375a16 /lib/Index/CallGraph.cpp
parentf650a624f7219be057d8f4e1a3174092297816f5 (diff)
Change CallGraph::Prog to be a reference. idx::Program means to be a global object to the Index library.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/CallGraph.cpp')
-rw-r--r--lib/Index/CallGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/CallGraph.cpp b/lib/Index/CallGraph.cpp
index 6403319de1..dedcc0e808 100644
--- a/lib/Index/CallGraph.cpp
+++ b/lib/Index/CallGraph.cpp
@@ -55,7 +55,7 @@ void CGBuilder::VisitCallExpr(CallExpr *CE) {
}
}
-CallGraph::CallGraph() : Root(0) {
+CallGraph::CallGraph(Program &P) : Prog(P), Root(0) {
ExternalCallingNode = getOrInsertFunction(Entity());
}