Add two utility methods.

llvm-svn: 83935
This commit is contained in:
Zhongxing Xu 2009-10-13 02:29:58 +00:00
parent daa4176926
commit 2d88c0b989
2 changed files with 11 additions and 0 deletions

View 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);
}
};
}

View 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;
}