summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-05-20 05:13:35 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-05-20 05:13:35 +0000
commite7579a0096f5f347ffe58d05545c4940e84da110 (patch)
tree223e155d38d59eb297622179dd958f5a6f72c5a9 /include
parent2f6808a7854c8eacad604ec72108f33d5471b6db (diff)
Target: move enum back into MC
Move the enumeration back to avoid the layering violation. Should repair the modules build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAsmInfo.h9
-rw-r--r--include/llvm/Target/TargetOptions.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 2c987da0e57..737637942ff 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -16,7 +16,6 @@
#ifndef LLVM_MC_MCASMINFO_H
#define LLVM_MC_MCASMINFO_H
-#include "llvm/Target/TargetOptions.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCDwarf.h"
#include <cassert>
@@ -42,6 +41,14 @@ enum class EncodingType {
};
}
+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
+};
+
namespace LCOMM {
enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment };
}
diff --git a/include/llvm/Target/TargetOptions.h b/include/llvm/Target/TargetOptions.h
index b1cfb2a5e00..eb272c31bb9 100644
--- a/include/llvm/Target/TargetOptions.h
+++ b/include/llvm/Target/TargetOptions.h
@@ -17,6 +17,7 @@
#include "llvm/Target/TargetRecip.h"
#include "llvm/MC/MCTargetOptions.h"
+#include "llvm/MC/MCAsmInfo.h"
namespace llvm {
class MachineFunction;
@@ -88,14 +89,6 @@ namespace llvm {
SCE // Tune debug info for SCE targets (e.g. PS4).
};
- 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
- };
-
class TargetOptions {
public:
TargetOptions()