Skip to content

Commit dfb15b7

Browse files
committed
MC: Move ExceptionHandling enum to Support
Similar to b596726, we need to use this in RuntimeLibcalls to compute the set of library calls.
1 parent 3bf268a commit dfb15b7

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

llvm/include/llvm/MC/MCTargetOptions.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@
1010
#define LLVM_MC_MCTARGETOPTIONS_H
1111

1212
#include "llvm/ADT/ArrayRef.h"
13+
#include "llvm/Support/CodeGen.h"
1314
#include "llvm/Support/Compiler.h"
1415
#include "llvm/Support/Compression.h"
1516
#include <string>
1617
#include <vector>
1718

1819
namespace llvm {
1920

20-
enum class ExceptionHandling {
21-
None, ///< No exception support
22-
DwarfCFI, ///< DWARF-like instruction based exceptions
23-
SjLj, ///< setjmp/longjmp based exceptions
24-
ARM, ///< ARM EHABI
25-
WinEH, ///< Windows Exception Handling
26-
Wasm, ///< WebAssembly Exception Handling
27-
AIX, ///< AIX Exception Handling
28-
ZOS, ///< z/OS MVS Exception Handling. Very similar to DwarfCFI, but the PPA1
29-
///< is used instead of an .eh_frame section.
30-
};
31-
3221
enum class EmitDwarfUnwindType {
3322
Always, // Always emit dwarf unwind
3423
NoCompactUnwind, // Only emit if compact unwind isn't available

llvm/include/llvm/Support/CodeGen.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ namespace llvm {
5050
};
5151
}
5252

53+
enum class ExceptionHandling {
54+
None, ///< No exception support
55+
DwarfCFI, ///< DWARF-like instruction based exceptions
56+
SjLj, ///< setjmp/longjmp based exceptions
57+
ARM, ///< ARM EHABI
58+
WinEH, ///< Windows Exception Handling
59+
Wasm, ///< WebAssembly Exception Handling
60+
AIX, ///< AIX Exception Handling
61+
ZOS, ///< z/OS MVS Exception Handling. Very similar to DwarfCFI, but the
62+
///< PPA1 is used instead of an .eh_frame section.
63+
};
64+
5365
namespace FloatABI {
5466
enum ABIType {
5567
Default, // Target-specific (either soft or hard depending on triple, etc).

0 commit comments

Comments
 (0)