Make a new X8632_MachoTargetObjectFile TLOF implementation whose
[oota-llvm.git] / lib / Target / X86 / X86TargetObjectFile.h
1 //===-- llvm/Target/X86/X86TargetObjectFile.h - X86 Object Info -*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_TARGET_X86_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_X86_TARGETOBJECTFILE_H
12
13 #include "llvm/Target/TargetLoweringObjectFile.h"
14
15 namespace llvm {
16   
17   /// X8632_MachoTargetObjectFile - This TLOF implementation is used for
18   /// Darwin/x86-32.
19   class X8632_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
20   public:
21     
22     virtual const MCExpr *
23     getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
24                                      MachineModuleInfo *MMI,
25                                      bool &IsIndirect, bool &IsPCRel) const;
26   };
27   
28   /// X8664_MachoTargetObjectFile - This TLOF implementation is used for
29   /// Darwin/x86-64.
30   class X8664_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
31   public:
32
33     virtual const MCExpr *
34     getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
35                                      MachineModuleInfo *MMI,
36                                      bool &IsIndirect, bool &IsPCRel) const;
37   };
38 } // end namespace llvm
39
40 #endif