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 {
|
|
|
|
class Triple;
|
|
|
|
|
2011-12-20 10:50:00 +08:00
|
|
|
class X86MCAsmInfoDarwin : public MCAsmInfoDarwin {
|
2015-01-10 02:55:42 +08:00
|
|
|
virtual void anchor();
|
|
|
|
|
2011-12-20 10:50:00 +08:00
|
|
|
public:
|
2009-08-23 05:03:30 +08:00
|
|
|
explicit X86MCAsmInfoDarwin(const Triple &Triple);
|
2009-08-23 04:48:53 +08:00
|
|
|
};
|
|
|
|
|
2011-04-29 00:09:09 +08:00
|
|
|
struct X86_64MCAsmInfoDarwin : public X86MCAsmInfoDarwin {
|
|
|
|
explicit X86_64MCAsmInfoDarwin(const Triple &Triple);
|
2014-03-10 02:03:14 +08:00
|
|
|
const MCExpr *
|
|
|
|
getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding,
|
|
|
|
MCStreamer &Streamer) const override;
|
2011-04-29 00:09:09 +08:00
|
|
|
};
|
|
|
|
|
2013-10-16 09:34:32 +08:00
|
|
|
class X86ELFMCAsmInfo : public MCAsmInfoELF {
|
2014-03-10 02:03:14 +08:00
|
|
|
void anchor() override;
|
2011-12-20 10:50:00 +08:00
|
|
|
public:
|
2009-08-23 04:48:53 +08:00
|
|
|
explicit X86ELFMCAsmInfo(const Triple &Triple);
|
|
|
|
};
|
|
|
|
|
2011-12-20 10:50:00 +08:00
|
|
|
class X86MCAsmInfoMicrosoft : public MCAsmInfoMicrosoft {
|
2014-03-10 02:03:14 +08:00
|
|
|
void anchor() override;
|
2011-12-20 10:50:00 +08:00
|
|
|
public:
|
2011-11-30 02:00:06 +08:00
|
|
|
explicit X86MCAsmInfoMicrosoft(const Triple &Triple);
|
|
|
|
};
|
|
|
|
|
2011-12-20 10:50:00 +08:00
|
|
|
class X86MCAsmInfoGNUCOFF : public MCAsmInfoGNUCOFF {
|
2014-03-10 02:03:14 +08:00
|
|
|
void anchor() override;
|
2011-12-20 10:50:00 +08:00
|
|
|
public:
|
2011-11-30 02:00:06 +08:00
|
|
|
explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
|
2009-08-23 04:48:53 +08:00
|
|
|
};
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|