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