1 //===-- X86MCAsmInfo.h - X86 asm properties --------------------*- C++ -*--===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file contains the declaration of the X86MCAsmInfo class. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef X86TARGETASMINFO_H 15 #define X86TARGETASMINFO_H 16 17 #include "llvm/MC/MCAsmInfo.h" 18 #include "llvm/MC/MCAsmInfoCOFF.h" 19 #include "llvm/MC/MCAsmInfoDarwin.h" 20 21 namespace llvm { 22 class Triple; 23 24 class X86MCAsmInfoDarwin : public MCAsmInfoDarwin { 25 virtual void anchor(); 26 public: 27 explicit X86MCAsmInfoDarwin(const Triple &Triple); 28 }; 29 30 struct X86_64MCAsmInfoDarwin : public X86MCAsmInfoDarwin { 31 explicit X86_64MCAsmInfoDarwin(const Triple &Triple); 32 virtual const MCExpr * 33 getExprForPersonalitySymbol(const MCSymbol *Sym, 34 unsigned Encoding, 35 MCStreamer &Streamer) const; 36 }; 37 38 class X86ELFMCAsmInfo : public MCAsmInfo { 39 virtual void anchor(); 40 public: 41 explicit X86ELFMCAsmInfo(const Triple &Triple); 42 virtual const MCSection *getNonexecutableStackSection(MCContext &Ctx) const; 43 }; 44 45 class X86MCAsmInfoMicrosoft : public MCAsmInfoMicrosoft { 46 virtual void anchor(); 47 public: 48 explicit X86MCAsmInfoMicrosoft(const Triple &Triple); 49 }; 50 51 class X86MCAsmInfoGNUCOFF : public MCAsmInfoGNUCOFF { 52 virtual void anchor(); 53 public: 54 explicit X86MCAsmInfoGNUCOFF(const Triple &Triple); 55 }; 56 } // namespace llvm 57 58 #endif 59