mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Drop old flag -single-decompilation
This flag was used with the old C backend to decompile only a single function from a binary. The logic of selecting functions in a binary for decompilation is now part of revng-pipeline, so the -single-decompilation option and the associated TargetFunctionOption library can be dropped.
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#include "revng-c/Backend/VariableScopeAnalysisPass.h"
|
||||
#include "revng-c/RestructureCFGPass/LoadGHAST.h"
|
||||
#include "revng-c/Support/FunctionTags.h"
|
||||
#include "revng-c/TargetFunctionOption/TargetFunctionOption.h"
|
||||
|
||||
using ValuePtrSet = VariableScopeAnalysisPass::ValuePtrSet;
|
||||
|
||||
@@ -165,12 +164,6 @@ bool VariableScopeAnalysisPass::runOnFunction(Function &F) {
|
||||
if (not FTags.contains(FunctionTags::Isolated))
|
||||
return false;
|
||||
|
||||
// If the `-single-decompilation` option was passed from command line, skip
|
||||
// decompilation for all the functions that are not the selected one.
|
||||
if (not TargetFunction.empty())
|
||||
if (not F.getName().equals(TargetFunction.c_str()))
|
||||
return false;
|
||||
|
||||
// Get the Abstract Syntax Tree of the restructured code.
|
||||
ASTTree &GHAST = getAnalysis<LoadGHASTWrapperPass>().getGHAST(F);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user