mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
30bc1d333e
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`.
17 lines
556 B
C++
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"));
|