mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Give error when selecting unsupported passmanager. (#4250)
This commit is contained in:
parent
bfa802d6c8
commit
fed90e8993
4 changed files with 29 additions and 8 deletions
|
@ -530,6 +530,17 @@ cl::opt<bool> noPLT(
|
|||
"fno-plt", cl::ZeroOrMore,
|
||||
cl::desc("Do not use the PLT to make function calls"));
|
||||
|
||||
cl::opt<signed char> passmanager("passmanager",
|
||||
cl::desc("Setting the passmanager (new,legacy):"), cl::ZeroOrMore,
|
||||
#if LDC_LLVM_VER < 1500
|
||||
cl::init(0),
|
||||
#else
|
||||
cl::init(1),
|
||||
#endif
|
||||
cl::values(
|
||||
clEnumValN(0, "legacy", "Use the legacy passmanager (available for LLVM14 and below) "),
|
||||
clEnumValN(1, "new", "Use the new passmanager (available for LLVM14 and above)")));
|
||||
|
||||
// Math options
|
||||
bool fFastMath; // Storage for the dynamically created ffast-math option.
|
||||
llvm::FastMathFlags defaultFMF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue