Chris Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 1 | //===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // 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 Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 9 | #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H |
| 10 | #define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H |
Chris Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 11 | |
Anton Korobeynikov | ab663a0 | 2010-02-15 22:37:53 +0000 | [diff] [blame] | 12 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
Eugene Zelenko | 342257e | 2017-01-31 00:56:17 +0000 | [diff] [blame] | 13 | #include "llvm/MC/MCExpr.h" |
Chris Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 14 | |
| 15 | namespace llvm { |
Jim Grosbach | f24f9d9 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 16 | |
Bill Wendling | 9481181 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 17 | class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { |
| 18 | public: |
Peter Collingbourne | 265ebd7 | 2016-04-22 20:40:10 +0000 | [diff] [blame] | 19 | ARMElfTargetObjectFile() |
Eugene Zelenko | 342257e | 2017-01-31 00:56:17 +0000 | [diff] [blame] | 20 | : TargetLoweringObjectFileELF() { |
Peter Collingbourne | 265ebd7 | 2016-04-22 20:40:10 +0000 | [diff] [blame] | 21 | PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31; |
| 22 | } |
Jim Grosbach | f24f9d9 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 23 | |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 24 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
Jason W Kim | 109ff29 | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 25 | |
Eric Christopher | 4367c7f | 2016-09-16 07:33:15 +0000 | [diff] [blame] | 26 | const MCExpr *getTTypeGlobalReference(const GlobalValue *GV, |
| 27 | unsigned Encoding, |
| 28 | const TargetMachine &TM, |
| 29 | MachineModuleInfo *MMI, |
| 30 | MCStreamer &Streamer) const override; |
Kai Nacke | 382c140 | 2014-02-05 07:23:09 +0000 | [diff] [blame] | 31 | |
Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 32 | /// Describe a TLS variable address within debug info. |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 33 | const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; |
Prakhar Bahuguna | 52a7dd7 | 2016-12-15 07:59:08 +0000 | [diff] [blame] | 34 | |
| 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 Wendling | 9481181 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 40 | }; |
| 41 | |
Chris Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 42 | } // end namespace llvm |
| 43 | |
Eugene Zelenko | 342257e | 2017-01-31 00:56:17 +0000 | [diff] [blame] | 44 | #endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H |