Files
revng-revng/lib/RestructureCFGPass/ExprNode.cpp
T
2019-11-20 15:16:17 +01:00

27 lines
593 B
C++

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// revng includes
#include <revng/Support/Debug.h>
// Local libraries includes
#include "revng-c/RestructureCFGPass/ExprNode.h"
void ExprNode::deleteExprNode(ExprNode *E) {
switch (E->getKind()) {
case NodeKind::NK_Atomic:
delete static_cast<AtomicNode *>(E);
break;
case NodeKind::NK_Not:
delete static_cast<NotNode *>(E);
break;
case NodeKind::NK_And:
delete static_cast<AndNode *>(E);
break;
case NodeKind::NK_Or:
delete static_cast<OrNode *>(E);
break;
}
}