2012-02-18 12:03:15 +00:00
|
|
|
//===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
|
2009-09-16 01:46:41 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TARGET_X86_TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_TARGET_X86_TARGETOBJECTFILE_H
|
|
|
|
|
2010-02-15 22:37:53 +00:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2009-09-16 01:46:41 +00:00
|
|
|
#include "llvm/Target/TargetLoweringObjectFile.h"
|
2012-12-04 07:12:27 +00:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2009-09-16 01:46:41 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
2010-02-15 22:35:59 +00:00
|
|
|
|
2012-06-26 10:05:06 +00:00
|
|
|
/// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
|
2010-03-15 19:04:37 +00:00
|
|
|
/// x86-64.
|
2012-06-26 10:05:06 +00:00
|
|
|
class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
2010-03-15 19:04:37 +00:00
|
|
|
public:
|
2009-09-16 01:46:41 +00:00
|
|
|
virtual const MCExpr *
|
2012-11-14 01:47:00 +00:00
|
|
|
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
|
|
|
MachineModuleInfo *MMI, unsigned Encoding,
|
|
|
|
MCStreamer &Streamer) const;
|
2011-04-27 23:08:15 +00:00
|
|
|
|
|
|
|
// getCFIPersonalitySymbol - The symbol that gets passed to
|
|
|
|
// .cfi_personality.
|
|
|
|
virtual MCSymbol *
|
2011-04-27 23:17:57 +00:00
|
|
|
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
|
|
|
MachineModuleInfo *MMI) const;
|
2010-02-15 22:35:59 +00:00
|
|
|
};
|
|
|
|
|
2012-06-19 00:48:28 +00:00
|
|
|
/// X86LinuxTargetObjectFile - This implementation is used for linux x86
|
|
|
|
/// and x86-64.
|
|
|
|
class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
2013-07-01 21:45:25 +00:00
|
|
|
|
|
|
|
/// \brief Describe a TLS variable address within debug info.
|
2013-07-02 18:47:09 +00:00
|
|
|
virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const;
|
2012-06-19 00:48:28 +00:00
|
|
|
};
|
|
|
|
|
2014-01-15 09:16:42 +00:00
|
|
|
/// \brief This implementation is used for Windows targets on x86 and x86-64.
|
|
|
|
class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
|
|
|
|
virtual const MCExpr *getExecutableRelativeSymbol(const ConstantExpr *CE,
|
|
|
|
Mangler *Mang) const;
|
|
|
|
};
|
|
|
|
|
2009-09-16 01:46:41 +00:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|