2012-02-18 20:03:15 +08:00
|
|
|
//===-- X86MCAsmInfo.h - X86 asm properties --------------------*- C++ -*--===//
|
2009-08-23 04:48:53 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the X86MCAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCASMINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCASMINFO_H
|
2009-08-23 04:48:53 +08:00
|
|
|
|
|
|
|
#include "llvm/MC/MCAsmInfo.h"
|
|
|
|
#include "llvm/MC/MCAsmInfoCOFF.h"
|
|
|
|
#include "llvm/MC/MCAsmInfoDarwin.h"
|
2013-10-16 09:34:32 +08:00
|
|
|
#include "llvm/MC/MCAsmInfoELF.h"
|
2009-08-23 04:48:53 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2015-09-16 00:17:27 +08:00
|
|
|
class Triple;
|
2015-09-15 20:27:06 +08:00
|
|
|
|
|
|
|
class X86MCAsmInfoDarwin : public MCAsmInfoDarwin {
|
|
|
|
virtual void anchor();
|
|
|
|
|
|
|
|
public:
|
2015-09-16 00:17:27 +08:00
|
|
|
explicit X86MCAsmInfoDarwin(const Triple &Triple);
|
2015-09-15 20:27:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct X86_64MCAsmInfoDarwin : public X86MCAsmInfoDarwin {
|
2015-09-16 00:17:27 +08:00
|
|
|
explicit X86_64MCAsmInfoDarwin(const Triple &Triple);
|
2015-09-15 20:27:06 +08:00
|
|
|
const MCExpr *
|
|
|
|
getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding,
|
|
|
|
MCStreamer &Streamer) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
class X86ELFMCAsmInfo : public MCAsmInfoELF {
|
|
|
|
void anchor() override;
|
|
|
|
|
|
|
|
public:
|
2015-09-16 00:17:27 +08:00
|
|
|
explicit X86ELFMCAsmInfo(const Triple &Triple);
|
2015-09-15 20:27:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class X86MCAsmInfoMicrosoft : public MCAsmInfoMicrosoft {
|
|
|
|
void anchor() override;
|
|
|
|
|
|
|
|
public:
|
2015-09-16 00:17:27 +08:00
|
|
|
explicit X86MCAsmInfoMicrosoft(const Triple &Triple);
|
2015-09-15 20:27:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class X86MCAsmInfoGNUCOFF : public MCAsmInfoGNUCOFF {
|
|
|
|
void anchor() override;
|
|
|
|
|
|
|
|
public:
|
2015-09-16 00:17:27 +08:00
|
|
|
explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
|
2015-09-15 20:27:06 +08:00
|
|
|
};
|
2009-08-23 04:48:53 +08:00
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|