diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-11-24 08:53:20 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-11-24 08:53:20 +0000 |
commit | 19b78d9e3dbbc27bbcbdd8c3017a00fe88849ecd (patch) | |
tree | 313c72a34a82e178a70c3e47e395c0ae564cb99a /include/clang/Analysis/ProgramPoint.h | |
parent | 5281b8ed0e395603e5ff15ecc01ee0d0dff2e0fd (diff) |
Use StackFrameContext directly in CallEnter program point. Then we don't need
to remake the stackframe everytime in GRExprEngine::ProcessCallEnter().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index a77ca39b15..49cddee4b8 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -318,17 +318,16 @@ public: class CallEnter : public StmtPoint { public: - // L is caller's location context. AC is callee's AnalysisContext. - CallEnter(const Stmt *S, const AnalysisContext *AC, const LocationContext *L) - : StmtPoint(S, AC, CallEnterKind, L, 0) {} + CallEnter(const Stmt *stmt, const StackFrameContext *calleeCtx, + const LocationContext *callerCtx) + : StmtPoint(stmt, calleeCtx, CallEnterKind, callerCtx, 0) {} const Stmt *getCallExpr() const { return static_cast<const Stmt *>(getData1()); } - AnalysisContext *getCalleeContext() const { - return const_cast<AnalysisContext *>( - static_cast<const AnalysisContext *>(getData2())); + const StackFrameContext *getCalleeContext() const { + return static_cast<const StackFrameContext *>(getData2()); } static bool classof(const ProgramPoint *Location) { |