diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-17 11:12:42 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-17 11:12:42 +0000 |
commit | 69b81941aa4211ba6b8eaa89093f9e45aff81392 (patch) | |
tree | efd30964b988c6ab9bb79afbbe1e3ddb50b77073 /lib/Analysis/AnalysisContext.cpp | |
parent | 7374f1b407a86df83fde942ee9f3684a3159f99f (diff) |
Prepare the analyzer for the callee in another translation unit:
Let AnalysisContext contain a TranslationUnit.
Let CallEnter refer to an AnalysisContext instead of a FunctionDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AnalysisContext.cpp')
-rw-r--r-- | lib/Analysis/AnalysisContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/AnalysisContext.cpp b/lib/Analysis/AnalysisContext.cpp index 06d8aec391..538d559c16 100644 --- a/lib/Analysis/AnalysisContext.cpp +++ b/lib/Analysis/AnalysisContext.cpp @@ -83,10 +83,11 @@ LiveVariables *AnalysisContext::getLiveVariables() { return liveness; } -AnalysisContext *AnalysisContextManager::getContext(const Decl *D) { +AnalysisContext *AnalysisContextManager::getContext(const Decl *D, + const idx::TranslationUnit *TU) { AnalysisContext *&AC = Contexts[D]; if (!AC) - AC = new AnalysisContext(D); + AC = new AnalysisContext(D, TU); return AC; } |