mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
cc02713f6d
This commit dismisses the `argparse` library (the only non-runtime C component of rev.ng) in favor of LLVM's CommandLine library, which offers several benefits. Among others, now command line arguments can be easily specified as a global variable, decentralizing their management and avoiding the long list of arguments in the constructor of singleton objects such as `CodeGenerator`.
23 lines
730 B
C++
23 lines
730 B
C++
/// \file debug.cpp
|
|
/// \brief Implementation of the debug framework
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// Local libraries includes
|
|
#include "revng/Support/CommandLine.h"
|
|
|
|
namespace cl = llvm::cl;
|
|
|
|
cl::OptionCategory MainCategory("Options", "");
|
|
|
|
cl::opt<bool> UseDebugSymbols("use-debug-symbols",
|
|
cl::desc("use section and symbol function "
|
|
"informations, if available"),
|
|
cl::cat(MainCategory));
|
|
static cl::alias A1("S",
|
|
cl::desc("Alias for -use-debug-symbols"),
|
|
cl::aliasopt(UseDebugSymbols),
|
|
cl::cat(MainCategory));
|