blob: 0dc0882809c091bfbfe96dd020c3de4a9b711917 [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"
Eugene Zelenko342257e2017-01-31 00:56:17 +000014#include "llvm/MC/MCExpr.h"
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000015
16namespace llvm {
Jim Grosbachf24f9d92009-08-11 15:33:49 +000017
Bill Wendling94811812010-03-09 18:31:07 +000018class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
19public:
Peter Collingbourne265ebd72016-04-22 20:40:10 +000020 ARMElfTargetObjectFile()
Eugene Zelenko342257e2017-01-31 00:56:17 +000021 : TargetLoweringObjectFileELF() {
Peter Collingbourne265ebd72016-04-22 20:40:10 +000022 PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
23 }
Jim Grosbachf24f9d92009-08-11 15:33:49 +000024
Craig Topper73156022014-03-02 09:09:27 +000025 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
Jason W Kim109ff292010-10-11 23:01:44 +000026
Eric Christopher4367c7f2016-09-16 07:33:15 +000027 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
28 unsigned Encoding,
29 const TargetMachine &TM,
30 MachineModuleInfo *MMI,
31 MCStreamer &Streamer) const override;
Kai Nacke382c1402014-02-05 07:23:09 +000032
Adrian Prantl5f8f34e42018-05-01 15:54:18 +000033 /// Describe a TLS variable address within debug info.
Craig Topper73156022014-03-02 09:09:27 +000034 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
Prakhar Bahuguna52a7dd72016-12-15 07:59:08 +000035
36 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
37 const TargetMachine &TM) const override;
38
39 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
40 const TargetMachine &TM) const override;
Bill Wendling94811812010-03-09 18:31:07 +000041};
42
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000043} // end namespace llvm
44
Eugene Zelenko342257e2017-01-31 00:56:17 +000045#endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H