]> granicus.if.org Git - clang/commitdiff
Add two utility methods.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 13 Oct 2009 02:29:58 +0000 (02:29 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 13 Oct 2009 02:29:58 +0000 (02:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83935 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/AnalysisManager.h
include/clang/Analysis/PathSensitive/GRCoreEngine.h

index 868e3c06e4bb9010139b0377ed3c36484b1a2e2a..e97f80576a8bdc2e967894cf72b51ecd6da5f079 100644 (file)
@@ -122,9 +122,17 @@ public:
     return AnaCtxMgr.getContext(D)->getParentMap();
   }
 
+  // Get the top level stack frame.
   StackFrameContext *getStackFrame(Decl const *D) {
     return LocCtxMgr.getStackFrame(AnaCtxMgr.getContext(D), 0, 0);
   }
+
+  // Get a stack frame with parent.
+  StackFrameContext const *getStackFrame(Decl const *D, 
+                                         LocationContext const *Parent,
+                                         Stmt const *S) {
+    return LocCtxMgr.getStackFrame(AnaCtxMgr.getContext(D), Parent, S);
+  }
 };
 
 }
index 48b86b9eaf0e56e1bc1c57772d8e217a4849cf97..02e0b0275e4e0202d9f1b7eca1182f343b6841d1 100644 (file)
@@ -162,6 +162,9 @@ public:
     return LastNode ? (LastNode->isSink() ? NULL : LastNode) : NULL;
   }
 
+  // FIXME: This should not be exposed.
+  GRWorkList *getWorkList() { return Eng.WList; }
+
   void SetCleanedState(const GRState* St) {
     CleanedState = St;
   }