| 1 |
#ifndef LDC_CL_OPTIONS_H |
|---|
| 2 |
#define LDC_CL_OPTIONS_H |
|---|
| 3 |
|
|---|
| 4 |
#include "mars.h" |
|---|
| 5 |
|
|---|
| 6 |
#include <deque> |
|---|
| 7 |
#include <vector> |
|---|
| 8 |
|
|---|
| 9 |
#include "llvm/Support/CommandLine.h" |
|---|
| 10 |
|
|---|
| 11 |
namespace opts { |
|---|
| 12 |
namespace cl = llvm::cl; |
|---|
| 13 |
|
|---|
| 14 |
/* Mostly generated with the following command: |
|---|
| 15 |
egrep -e '^(cl::|#if|#e)' gen/cl_options.cpp \ |
|---|
| 16 |
| sed -re 's/^(cl::.*)\(.*$/ extern \1;/' |
|---|
| 17 |
*/ |
|---|
| 18 |
extern cl::list<std::string> fileList; |
|---|
| 19 |
extern cl::list<std::string> runargs; |
|---|
| 20 |
extern cl::opt<bool> compileOnly; |
|---|
| 21 |
extern cl::opt<bool> noAsm; |
|---|
| 22 |
extern cl::opt<bool> dontWriteObj; |
|---|
| 23 |
extern cl::opt<std::string> objectFile; |
|---|
| 24 |
extern cl::opt<std::string> objectDir; |
|---|
| 25 |
extern cl::opt<bool> output_bc; |
|---|
| 26 |
extern cl::opt<bool> output_ll; |
|---|
| 27 |
extern cl::opt<bool> output_s; |
|---|
| 28 |
extern cl::opt<cl::boolOrDefault> output_o; |
|---|
| 29 |
extern cl::opt<std::string> ddocDir; |
|---|
| 30 |
extern cl::opt<std::string> ddocFile; |
|---|
| 31 |
#ifdef _DH |
|---|
| 32 |
extern cl::opt<std::string> hdrDir; |
|---|
| 33 |
extern cl::opt<std::string> hdrFile; |
|---|
| 34 |
#endif |
|---|
| 35 |
extern cl::list<std::string> versions; |
|---|
| 36 |
extern cl::opt<std::string> moduleDepsFile; |
|---|
| 37 |
|
|---|
| 38 |
extern cl::opt<std::string> mArch; |
|---|
| 39 |
extern cl::opt<bool> m32bits; |
|---|
| 40 |
extern cl::opt<bool> m64bits; |
|---|
| 41 |
extern cl::opt<std::string> mCPU; |
|---|
| 42 |
extern cl::list<std::string> mAttrs; |
|---|
| 43 |
extern cl::opt<std::string> mTargetTriple; |
|---|
| 44 |
extern cl::opt<bool> singleObj; |
|---|
| 45 |
extern cl::opt<bool> linkonceTemplates; |
|---|
| 46 |
|
|---|
| 47 |
// Arguments to -d-debug |
|---|
| 48 |
extern std::vector<std::string> debugArgs; |
|---|
| 49 |
// Arguments to -run |
|---|
| 50 |
} |
|---|
| 51 |
#endif |
|---|