diff options
author | Anna Zaks <ganna@apple.com> | 2011-10-18 23:06:21 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-10-18 23:06:21 +0000 |
commit | cd656cab3fa3dd4b0c974c6ae1c0e60880b18c22 (patch) | |
tree | 95fabbc9cca21c9cd2a8a347d00536d9d9db0c7a /lib/StaticAnalyzer/Core/CoreEngine.cpp | |
parent | ad62deeb70e97da6bd514dd390ea1ce6af6ad81d (diff) |
[analyzer] Modularize builder use in processBranch.
Take advantage of the new builders for branch processing. As part of this change pass generic NodeBuilder (instead of BranchNodeBuilder) to the BranchCondition callback and remove the unused methods form BranchBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CoreEngine.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/CoreEngine.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/StaticAnalyzer/Core/CoreEngine.cpp b/lib/StaticAnalyzer/Core/CoreEngine.cpp index d1c1e39d59..91aa9a567c 100644 --- a/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -602,21 +602,6 @@ StmtNodeBuilder::generateNodeInternal(const ProgramPoint &Loc, return NULL; } -// This function generate a new ExplodedNode but not a new branch(block edge). -// Creates a transition from the Builder's top predecessor. -ExplodedNode *BranchNodeBuilder::generateNode(const Stmt *Condition, - const ProgramState *State, - const ProgramPointTag *Tag, - bool MarkAsSink) { - ProgramPoint PP = PostCondition(Condition, - BuilderPred->getLocationContext(), Tag); - ExplodedNode *N = generateNodeImpl(PP, State, BuilderPred, MarkAsSink); - assert(N); - // TODO: This needs to go - we should not change Pred!!! - BuilderPred = N; - return N; -} - ExplodedNode *BranchNodeBuilder::generateNode(const ProgramState *State, bool branch, ExplodedNode *NodePred) { |