1 //===-- llvm/Target/X86/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"
18 class X86TargetMachine;
20 /// X8664_MachoTargetObjectFile - This TLOF implementation is used for
22 class X8664_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
25 virtual const MCExpr *
26 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
27 MachineModuleInfo *MMI, unsigned Encoding,
28 MCStreamer &Streamer) const;
31 class X8632_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
32 const X86TargetMachine &TM;
34 X8632_ELFTargetObjectFile(const X86TargetMachine &tm)
36 virtual unsigned getPersonalityEncoding() const;
37 virtual unsigned getLSDAEncoding() const;
38 virtual unsigned getFDEEncoding() const;
39 virtual unsigned getTTypeEncoding() const;
42 class X8664_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
43 const X86TargetMachine &TM;
45 X8664_ELFTargetObjectFile(const X86TargetMachine &tm)
47 virtual unsigned getPersonalityEncoding() const;
48 virtual unsigned getLSDAEncoding() const;
49 virtual unsigned getFDEEncoding() const;
50 virtual unsigned getTTypeEncoding() const;
53 } // end namespace llvm