Make implementation of ExplodedNodeImpl::addPredecessor out-of-line.

llvm-svn: 55402
This commit is contained in:
Ted Kremenek 2008-08-27 01:27:52 +00:00
parent 5ca269e684
commit 6f7c419308
2 changed files with 7 additions and 5 deletions

View File

@ -110,11 +110,7 @@ protected:
/// addPredeccessor - Adds a predecessor to the current node, and
/// in tandem add this node as a successor of the other node.
void addPredecessor(ExplodedNodeImpl* V) {
assert (!V->isSink());
Preds.addNode(V);
V->Succs.addNode(this);
}
void addPredecessor(ExplodedNodeImpl* V);
public:

View File

@ -27,6 +27,12 @@ static inline std::vector<ExplodedNodeImpl*>& getVector(void* P) {
return *reinterpret_cast<std::vector<ExplodedNodeImpl*>*>(P);
}
void ExplodedNodeImpl::addPredecessor(ExplodedNodeImpl* V) {
assert (!V->isSink());
Preds.addNode(V);
V->Succs.addNode(this);
}
void ExplodedNodeImpl::NodeGroup::addNode(ExplodedNodeImpl* N) {
assert ((reinterpret_cast<uintptr_t>(N) & Mask) == 0x0);