Files
revng-revng/lib/Support/CommandLine.cpp
T
Alessandro Di Federico cc02713f6d Abandon argparse in favor of LLVM's CommandLine
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`.
2018-10-03 23:11:13 +02:00

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));