Files
revng-revng/lib/TargetFunctionOption/TargetFunctionOption.cpp
T
Andrea Gussoni 30bc1d333e Decompile a single function
Add a flag to enable the decompilation of a single function.
In order to have a single flag shared between the `RestructureCFGPass`
and the `CDecompilerPass`, we added a new dedicated decompilation unit
called `TargetFunctionOption`.
2020-01-13 11:55:32 +01:00

17 lines
556 B
C++

/// \file TargetFunction.cpp
/// \brief File which defines an option later used by the `CDecompilerPass` and
/// by the `RestructureCFGPass`
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// Local libraries includes
#include "revng-c/TargetFunctionOption/TargetFunctionOption.h"
using namespace llvm;
cl::opt<std::string> TargetFunction("single-decompilation",
cl::desc("Function name to decompile"),
cl::value_desc("function-name"));