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" |
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 MCContext; |
| 18 | class TargetMachine; |
Jim Grosbach | f24f9d9 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 19 | |
Bill Wendling | 9481181 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 20 | class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { |
Jason W Kim | 109ff29 | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 21 | protected: |
| 22 | const MCSection *AttributesSection; |
Bill Wendling | 9481181 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 23 | public: |
Peter Collingbourne | 265ebd7 | 2016-04-22 20:40:10 +0000 | [diff] [blame] | 24 | ARMElfTargetObjectFile() |
| 25 | : TargetLoweringObjectFileELF(), AttributesSection(nullptr) { |
| 26 | PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31; |
| 27 | } |
Jim Grosbach | f24f9d9 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 28 | |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 29 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
Jason W Kim | 109ff29 | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 30 | |
Rafael Espindola | daeafb4 | 2014-02-19 17:23:20 +0000 | [diff] [blame] | 31 | const MCExpr * |
| 32 | getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, |
| 33 | Mangler &Mang, const TargetMachine &TM, |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 34 | MachineModuleInfo *MMI, |
| 35 | MCStreamer &Streamer) const override; |
Kai Nacke | 382c140 | 2014-02-05 07:23:09 +0000 | [diff] [blame] | 36 | |
| 37 | /// \brief Describe a TLS variable address within debug info. |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 38 | const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; |
Bill Wendling | 9481181 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
Chris Lattner | 4e7dfaf | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 41 | } // end namespace llvm |
| 42 | |
| 43 | #endif |