[clang] clang: Forward exception_model flag for bitcode inputs (PR #146342)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 30 05:40:50 PDT 2025
================
@@ -3679,6 +3679,22 @@ static StringRef GetInputKindName(InputKind IK) {
llvm_unreachable("unknown input language");
}
+static StringRef getExceptionHandlingName(unsigned EHK) {
+ switch (static_cast<LangOptions::ExceptionHandlingKind>(EHK)) {
+ case LangOptions::ExceptionHandlingKind::None:
+ default:
+ return "none";
+ case LangOptions::ExceptionHandlingKind::SjLj:
+ return "sjlj";
+ case LangOptions::ExceptionHandlingKind::DwarfCFI:
+ return "dwarf";
+ case LangOptions::ExceptionHandlingKind::Wasm:
+ return "wasm";
+ }
+
+ llvm_unreachable("covered switch");
----------------
arsenm wrote:
I'm pretty sure you need it to keep the full set of compilers happy. I think MSVC is the annoying one
https://github.com/llvm/llvm-project/pull/146342
More information about the cfe-commits
mailing list