1 //===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TARGET_X86_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_X86_TARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 #include "llvm/Target/TargetMachine.h"
15 #include "llvm/Target/TargetLoweringObjectFile.h"
19 /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
21 class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
23 virtual const MCExpr *
24 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
25 MachineModuleInfo *MMI, unsigned Encoding,
26 MCStreamer &Streamer) const;
28 // getCFIPersonalitySymbol - The symbol that gets passed to
31 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
32 MachineModuleInfo *MMI) const;
35 /// X86LinuxTargetObjectFile - This implementation is used for linux x86
37 class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
38 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
41 } // end namespace llvm