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