Add new CLI options -fno-moduleinfo and -fno-rtti

Using the same names as GDC.
This commit is contained in:
Martin Kinkelin 2023-11-06 21:24:44 +01:00
parent a2bd6a6c95
commit 406df56b82
6 changed files with 15 additions and 5 deletions

View file

@ -575,6 +575,12 @@ cl::opt<bool>
cl::desc("Disable generation of exception stack unwinding "
"code, assuming no Exceptions will be thrown"));
cl::opt<bool> fNoModuleInfo("fno-moduleinfo", cl::ZeroOrMore,
cl::desc("Disable generation of ModuleInfos"));
cl::opt<bool> fNoRTTI("fno-rtti", cl::ZeroOrMore,
cl::desc("Disable generation of TypeInfos"));
cl::opt<bool>
fSplitStack("fsplit-stack", cl::ZeroOrMore,
cl::desc("Use segmented stack (see Clang documentation)"));