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`.
17 lines
321 B
C
17 lines
321 B
C
#ifndef COMMANDLINE_H
|
|
#define COMMANDLINE_H
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// LLVM includes
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
extern llvm::cl::OptionCategory MainCategory;
|
|
|
|
// Popular option
|
|
extern llvm::cl::opt<bool> UseDebugSymbols;
|
|
|
|
#endif // COMMANDLINE_H
|