https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/144692
>From 762a6b42151430ec885fe28d8c2d195bd61d8db8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <matthew.arsena...@amd.com> Date: Wed, 18 Jun 2025 21:42:59 +0900 Subject: [PATCH] MC: Move ExceptionHandling enum to Support Similar to b5967264b0fbfd502b3a7edec27409e966fb68be, we need to use this in RuntimeLibcalls to compute the set of library calls. --- llvm/include/llvm/MC/MCTargetOptions.h | 13 +------------ llvm/include/llvm/Support/CodeGen.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/llvm/include/llvm/MC/MCTargetOptions.h b/llvm/include/llvm/MC/MCTargetOptions.h index 3ee21d9cda4b7..d95adf92b9a83 100644 --- a/llvm/include/llvm/MC/MCTargetOptions.h +++ b/llvm/include/llvm/MC/MCTargetOptions.h @@ -10,6 +10,7 @@ #define LLVM_MC_MCTARGETOPTIONS_H #include "llvm/ADT/ArrayRef.h" +#include "llvm/Support/CodeGen.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Compression.h" #include <string> @@ -17,18 +18,6 @@ namespace llvm { -enum class ExceptionHandling { - None, ///< No exception support - DwarfCFI, ///< DWARF-like instruction based exceptions - SjLj, ///< setjmp/longjmp based exceptions - ARM, ///< ARM EHABI - WinEH, ///< Windows Exception Handling - Wasm, ///< WebAssembly Exception Handling - AIX, ///< AIX Exception Handling - ZOS, ///< z/OS MVS Exception Handling. Very similar to DwarfCFI, but the PPA1 - ///< is used instead of an .eh_frame section. -}; - enum class EmitDwarfUnwindType { Always, // Always emit dwarf unwind NoCompactUnwind, // Only emit if compact unwind isn't available diff --git a/llvm/include/llvm/Support/CodeGen.h b/llvm/include/llvm/Support/CodeGen.h index 90733b50385a9..cd1f9167b996d 100644 --- a/llvm/include/llvm/Support/CodeGen.h +++ b/llvm/include/llvm/Support/CodeGen.h @@ -50,6 +50,18 @@ namespace llvm { }; } + enum class ExceptionHandling { + None, ///< No exception support + DwarfCFI, ///< DWARF-like instruction based exceptions + SjLj, ///< setjmp/longjmp based exceptions + ARM, ///< ARM EHABI + WinEH, ///< Windows Exception Handling + Wasm, ///< WebAssembly Exception Handling + AIX, ///< AIX Exception Handling + ZOS, ///< z/OS MVS Exception Handling. Very similar to DwarfCFI, but the + ///< PPA1 is used instead of an .eh_frame section. + }; + namespace FloatABI { enum ABIType { Default, // Target-specific (either soft or hard depending on triple, etc). _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits