xref: /aosp_15_r20/external/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===-- PPCTargetObjectFile.h - PPC Object Info -----------------*- C++ -*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker 
10*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H
11*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H
12*9880d681SAndroid Build Coastguard Worker 
13*9880d681SAndroid Build Coastguard Worker #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14*9880d681SAndroid Build Coastguard Worker #include "llvm/Target/TargetLoweringObjectFile.h"
15*9880d681SAndroid Build Coastguard Worker #include "llvm/Target/TargetMachine.h"
16*9880d681SAndroid Build Coastguard Worker 
17*9880d681SAndroid Build Coastguard Worker namespace llvm {
18*9880d681SAndroid Build Coastguard Worker 
19*9880d681SAndroid Build Coastguard Worker   /// PPC64LinuxTargetObjectFile - This implementation is used for
20*9880d681SAndroid Build Coastguard Worker   /// 64-bit PowerPC Linux.
21*9880d681SAndroid Build Coastguard Worker   class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF {
22*9880d681SAndroid Build Coastguard Worker 
23*9880d681SAndroid Build Coastguard Worker     void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
24*9880d681SAndroid Build Coastguard Worker 
25*9880d681SAndroid Build Coastguard Worker     MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
26*9880d681SAndroid Build Coastguard Worker                                       Mangler &Mang,
27*9880d681SAndroid Build Coastguard Worker                                       const TargetMachine &TM) const override;
28*9880d681SAndroid Build Coastguard Worker 
29*9880d681SAndroid Build Coastguard Worker     /// \brief Describe a TLS variable address within debug info.
30*9880d681SAndroid Build Coastguard Worker     const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
31*9880d681SAndroid Build Coastguard Worker   };
32*9880d681SAndroid Build Coastguard Worker 
33*9880d681SAndroid Build Coastguard Worker }  // end namespace llvm
34*9880d681SAndroid Build Coastguard Worker 
35*9880d681SAndroid Build Coastguard Worker #endif
36