Files
revng-revng/lib/RestructureCFG/ExprNode.cpp
T
Pietro Fezzardi 604d370239 Remove LLVM passes RestructureCFG, BeautifyGHAST
Now that the late stage of the decompilation pipeline is managed with
revng-pipeline, and we have a standalone tool for decompilation, we
have no need to use LLVM passes anymore for those stages.

This commit also renames the directories to avoid the confusing Pass
suffix, not what LLVM passes are gone.
2022-05-11 15:19:34 +02:00

25 lines
522 B
C++

//
// Copyright rev.ng Labs Srl. See LICENSE.md for details.
//
#include "revng/Support/Debug.h"
#include "revng-c/RestructureCFG/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;
}
}