1 //===-- llvm/Target/ARMTargetObjectFile.h - ARM 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_ARM_ARMTARGETOBJECTFILE_H 11 #define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H 12 13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" 14 #include "llvm/MC/MCExpr.h" 15 16 namespace llvm { 17 18 class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { 19 protected: 20 const MCSection *AttributesSection = nullptr; 21 22 public: 23 ARMElfTargetObjectFile() 24 : TargetLoweringObjectFileELF() { 25 PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31; 26 } 27 28 void Initialize(MCContext &Ctx, const TargetMachine &TM) override; 29 30 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, 31 unsigned Encoding, 32 const TargetMachine &TM, 33 MachineModuleInfo *MMI, 34 MCStreamer &Streamer) const override; 35 36 /// \brief Describe a TLS variable address within debug info. 37 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; 38 39 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, 40 const TargetMachine &TM) const override; 41 42 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 43 const TargetMachine &TM) const override; 44 }; 45 46 } // end namespace llvm 47 48 #endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H 49