blob: 7b15dcc61f566aaf081fa9c6cc4648fee9b40a51 [file] [log] [blame]
Chris Lattner4e7dfaf2009-08-02 00:34:36 +00001//===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Chris Lattner4e7dfaf2009-08-02 00:34:36 +00006//
7//===----------------------------------------------------------------------===//
8
Benjamin Kramera7c40ef2014-08-13 16:26:38 +00009#ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
10#define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000011
Anton Korobeynikovab663a02010-02-15 22:37:53 +000012#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Eugene Zelenko342257e2017-01-31 00:56:17 +000013#include "llvm/MC/MCExpr.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 ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
18public:
Peter Collingbourne265ebd72016-04-22 20:40:10 +000019 ARMElfTargetObjectFile()
Eugene Zelenko342257e2017-01-31 00:56:17 +000020 : TargetLoweringObjectFileELF() {
Peter Collingbourne265ebd72016-04-22 20:40:10 +000021 PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
22 }
Jim Grosbachf24f9d92009-08-11 15:33:49 +000023
Craig Topper73156022014-03-02 09:09:27 +000024 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
Jason W Kim109ff292010-10-11 23:01:44 +000025
Eric Christopher4367c7f2016-09-16 07:33:15 +000026 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
27 unsigned Encoding,
28 const TargetMachine &TM,
29 MachineModuleInfo *MMI,
30 MCStreamer &Streamer) const override;
Kai Nacke382c1402014-02-05 07:23:09 +000031
Adrian Prantl5f8f34e42018-05-01 15:54:18 +000032 /// Describe a TLS variable address within debug info.
Craig Topper73156022014-03-02 09:09:27 +000033 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
Prakhar Bahuguna52a7dd72016-12-15 07:59:08 +000034
35 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
36 const TargetMachine &TM) const override;
37
38 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
39 const TargetMachine &TM) const override;
Bill Wendling94811812010-03-09 18:31:07 +000040};
41
Chris Lattner4e7dfaf2009-08-02 00:34:36 +000042} // end namespace llvm
43
Eugene Zelenko342257e2017-01-31 00:56:17 +000044#endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H