// // This file is distributed under the MIT License. See LICENSE.md for details. // #include "revng/RestructureCFG/ExprNode.h" #include "revng/Support/Debug.h" void ExprNode::deleteExprNode(ExprNode *E) { switch (E->getKind()) { case NodeKind::NK_ValueCompare: delete static_cast(E); break; case NodeKind::NK_LoopStateCompare: delete static_cast(E); break; case NodeKind::NK_Atomic: delete static_cast(E); break; case NodeKind::NK_Not: delete static_cast(E); break; case NodeKind::NK_And: delete static_cast(E); break; case NodeKind::NK_Or: delete static_cast(E); break; } }