2012-02-18 20:03:15 +08:00
|
|
|
//===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
|
2009-09-16 09:46:41 +08: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-16 06:37:53 +08:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2010-02-16 06:35:59 +08:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2009-09-16 09:46:41 +08:00
|
|
|
#include "llvm/Target/TargetLoweringObjectFile.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2010-02-16 06:35:59 +08:00
|
|
|
|
2012-06-26 18:05:06 +08:00
|
|
|
/// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
|
2010-03-16 03:04:37 +08:00
|
|
|
/// x86-64.
|
2012-06-26 18:05:06 +08:00
|
|
|
class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
2010-03-16 03:04:37 +08:00
|
|
|
public:
|
2009-09-16 09:46:41 +08:00
|
|
|
virtual const MCExpr *
|
2012-11-14 09:47:00 +08:00
|
|
|
getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
|
|
|
MachineModuleInfo *MMI, unsigned Encoding,
|
|
|
|
MCStreamer &Streamer) const;
|
2011-04-28 07:08:15 +08:00
|
|
|
|
|
|
|
// getCFIPersonalitySymbol - The symbol that gets passed to
|
|
|
|
// .cfi_personality.
|
|
|
|
virtual MCSymbol *
|
2011-04-28 07:17:57 +08:00
|
|
|
getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
|
|
|
MachineModuleInfo *MMI) const;
|
2010-02-16 06:35:59 +08:00
|
|
|
};
|
|
|
|
|
2012-06-19 08:48:28 +08:00
|
|
|
/// X86LinuxTargetObjectFile - This implementation is used for linux x86
|
|
|
|
/// and x86-64.
|
|
|
|
class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
|
|
|
};
|
|
|
|
|
2009-09-16 09:46:41 +08:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|