forked from OSchip/llvm-project
Remove MCAsmInfo.h include from TargetOptions.h
TargetOptions wants the ExceptionHandling enum. Move that to MCTargetOptions.h to avoid transitively including Dwarf.h everywhere in clang. Now you can add a DWARF tag without a full rebuild of clang semantic analysis. llvm-svn: 276883
This commit is contained in:
parent
7efafbc583
commit
46cb48c74a
|
@ -37,14 +37,12 @@
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
#include "llvm/Analysis/EHPersonalities.h"
|
#include "llvm/Analysis/EHPersonalities.h"
|
||||||
#include "llvm/IR/DebugLoc.h"
|
#include "llvm/IR/DebugLoc.h"
|
||||||
#include "llvm/IR/Metadata.h"
|
|
||||||
#include "llvm/IR/ValueHandle.h"
|
#include "llvm/IR/ValueHandle.h"
|
||||||
#include "llvm/MC/MCContext.h"
|
#include "llvm/MC/MCContext.h"
|
||||||
#include "llvm/MC/MCSymbol.h"
|
#include "llvm/MC/MCSymbol.h"
|
||||||
#include "llvm/MC/MachineLocation.h"
|
#include "llvm/MC/MachineLocation.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/Support/Dwarf.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#include "llvm/ADT/ArrayRef.h"
|
#include "llvm/ADT/ArrayRef.h"
|
||||||
#include "llvm/ADT/Optional.h"
|
#include "llvm/ADT/Optional.h"
|
||||||
#include "llvm/MC/MCDirectives.h"
|
#include "llvm/MC/MCDirectives.h"
|
||||||
#include "llvm/MC/MCDwarf.h"
|
|
||||||
#include "llvm/MC/MCFixup.h"
|
#include "llvm/MC/MCFixup.h"
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
|
@ -21,6 +20,7 @@
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class MCAsmLayout;
|
class MCAsmLayout;
|
||||||
class MCAssembler;
|
class MCAssembler;
|
||||||
|
class MCCFIInstruction;
|
||||||
class MCELFObjectTargetWriter;
|
class MCELFObjectTargetWriter;
|
||||||
struct MCFixupKindInfo;
|
struct MCFixupKindInfo;
|
||||||
class MCFragment;
|
class MCFragment;
|
||||||
|
@ -28,6 +28,7 @@ class MCInst;
|
||||||
class MCRelaxableFragment;
|
class MCRelaxableFragment;
|
||||||
class MCObjectWriter;
|
class MCObjectWriter;
|
||||||
class MCSection;
|
class MCSection;
|
||||||
|
class MCSubtargetInfo;
|
||||||
class MCValue;
|
class MCValue;
|
||||||
class raw_pwrite_stream;
|
class raw_pwrite_stream;
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include "llvm/MC/MCDirectives.h"
|
#include "llvm/MC/MCDirectives.h"
|
||||||
#include "llvm/MC/MCDwarf.h"
|
#include "llvm/MC/MCDwarf.h"
|
||||||
|
#include "llvm/MC/MCTargetOptions.h"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -41,14 +42,6 @@ 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 {
|
namespace LCOMM {
|
||||||
enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment };
|
enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment };
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,14 @@
|
||||||
|
|
||||||
namespace llvm {
|
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
|
||||||
|
};
|
||||||
|
|
||||||
class StringRef;
|
class StringRef;
|
||||||
|
|
||||||
class MCTargetOptions {
|
class MCTargetOptions {
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
#include "llvm/Target/TargetRecip.h"
|
#include "llvm/Target/TargetRecip.h"
|
||||||
#include "llvm/MC/MCTargetOptions.h"
|
#include "llvm/MC/MCTargetOptions.h"
|
||||||
#include "llvm/MC/MCAsmInfo.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class MachineFunction;
|
class MachineFunction;
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "llvm/DebugInfo/Msf/ByteStream.h"
|
#include "llvm/DebugInfo/Msf/ByteStream.h"
|
||||||
#include "llvm/DebugInfo/Msf/StreamReader.h"
|
#include "llvm/DebugInfo/Msf/StreamReader.h"
|
||||||
#include "llvm/IR/Constants.h"
|
#include "llvm/IR/Constants.h"
|
||||||
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
#include "llvm/MC/MCExpr.h"
|
#include "llvm/MC/MCExpr.h"
|
||||||
#include "llvm/MC/MCSectionCOFF.h"
|
#include "llvm/MC/MCSectionCOFF.h"
|
||||||
#include "llvm/MC/MCSymbol.h"
|
#include "llvm/MC/MCSymbol.h"
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||||
#include "llvm/IR/Constants.h"
|
#include "llvm/IR/Constants.h"
|
||||||
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue