]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / Target / PowerPC / PPCTargetObjectFile.h
1 //===-- PPCTargetObjectFile.h - PPC 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_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_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   /// PPC64LinuxTargetObjectFile - This implementation is used for
20   /// 64-bit PowerPC Linux.
21   class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
22
23     void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
24
25     MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
26                                       const TargetMachine &TM) const override;
27
28     /// Describe a TLS variable address within debug info.
29     const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
30   };
31
32 }  // end namespace llvm
33
34 #endif