blob: 24e755ddac2750ef4ca35895ad492ac278d0e6f3 [file] [log] [blame]
Chris Lattner4e7dfaf2009-08-02 00:34:36 +00001//===-- 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
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000010#ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
11#define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000012
Anton Korobeynikovab663a02010-02-15 22:37:53 +000013#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000014
15namespace llvm {
Jim Grosbachf24f9d92009-08-11 15:33:49 +000016
Bill Wendling94811812010-03-09 18:31:07 +000017class MCContext;
18class TargetMachine;
Jim Grosbachf24f9d92009-08-11 15:33:49 +000019
Bill Wendling94811812010-03-09 18:31:07 +000020class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
Prakhar Bahuguna52a7dd72016-12-15 07:59:08 +000021 mutable bool genExecuteOnly = false;
Jason W Kim109ff292010-10-11 23:01:44 +000022protected:
23 const MCSection *AttributesSection;
Bill Wendling94811812010-03-09 18:31:07 +000024public:
Peter Collingbourne265ebd72016-04-22 20:40:10 +000025 ARMElfTargetObjectFile()
26 : TargetLoweringObjectFileELF(), AttributesSection(nullptr) {
27 PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
28 }
Jim Grosbachf24f9d92009-08-11 15:33:49 +000029
Craig Topper73156022014-03-02 09:09:27 +000030 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
Jason W Kim109ff292010-10-11 23:01:44 +000031
Eric Christopher4367c7f2016-09-16 07:33:15 +000032 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
33 unsigned Encoding,
34 const TargetMachine &TM,
35 MachineModuleInfo *MMI,
36 MCStreamer &Streamer) const override;
Kai Nacke382c1402014-02-05 07:23:09 +000037
38 /// \brief Describe a TLS variable address within debug info.
Craig Topper73156022014-03-02 09:09:27 +000039 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
Prakhar Bahuguna52a7dd72016-12-15 07:59:08 +000040
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;
Bill Wendling94811812010-03-09 18:31:07 +000046};
47
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000048} // end namespace llvm
49
50#endif