[embedded] Add a temporary flag that turns throws into traps so that programs that use throwing can at least be compiled for now

This commit is contained in:
Kuba Mracek
2023-09-19 22:00:51 -07:00
parent 7014fcf12a
commit a31c3388e4
5 changed files with 62 additions and 0 deletions

View File

@@ -720,6 +720,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableThrowWithoutTry |= Args.hasArg(OPT_enable_throw_without_try);
Opts.ThrowsAsTraps |= Args.hasArg(OPT_throws_as_traps);
if (auto A = Args.getLastArg(OPT_enable_objc_attr_requires_foundation_module,
OPT_disable_objc_attr_requires_foundation_module)) {
Opts.EnableObjCAttrRequiresFoundation