1 //===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 #include "llvm/MC/MCExpr.h"
18 class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
19 mutable bool genExecuteOnly = false;
22 const MCSection *AttributesSection = nullptr;
25 ARMElfTargetObjectFile()
26 : TargetLoweringObjectFileELF() {
27 PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
30 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
32 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
34 const TargetMachine &TM,
35 MachineModuleInfo *MMI,
36 MCStreamer &Streamer) const override;
38 /// \brief Describe a TLS variable address within debug info.
39 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
41 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
42 const TargetMachine &TM) const override;
44 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
45 const TargetMachine &TM) const override;
48 } // end namespace llvm
50 #endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H