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:
Pietro Fezzardi
2022-05-02 14:35:39 +02:00
parent 5071fe8dc4
commit c88504afbf
16 changed files with 8 additions and 106 deletions
@@ -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);