Switch all uses of LLVM_OVERRIDE to just use 'override' directly.
[oota-llvm.git] / lib / Target / X86 / X86TargetObjectFile.h
1 //===-- 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/CodeGen/TargetLoweringObjectFileImpl.h"
14 #include "llvm/Target/TargetLoweringObjectFile.h"
15 #include "llvm/Target/TargetMachine.h"
16
17 namespace llvm {
18
19   /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
20   /// x86-64.
21   class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
22   public:
23     const MCExpr *
24     getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
25                             Mangler &Mang, const TargetMachine &TM,
26                             MachineModuleInfo *MMI,
27                             MCStreamer &Streamer) const override;
28
29     // getCFIPersonalitySymbol - The symbol that gets passed to
30     // .cfi_personality.
31     MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
32                                       const TargetMachine &TM,
33                                       MachineModuleInfo *MMI) const override;
34   };
35
36   /// X86LinuxTargetObjectFile - This implementation is used for linux x86
37   /// and x86-64.
38   class X86LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
39     void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
40
41     /// \brief Describe a TLS variable address within debug info.
42     const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
43   };
44
45   /// \brief This implementation is used for Windows targets on x86 and x86-64.
46   class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
47     const MCExpr *
48     getExecutableRelativeSymbol(const ConstantExpr *CE, Mangler &Mang,
49                                 const TargetMachine &TM) const override;
50   };
51
52 } // end namespace llvm
53
54 #endif