Chris Lattner | 80ec279 | 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 | |
| 10 | #ifndef LLVM_TARGET_ARM_TARGETOBJECTFILE_H |
| 11 | #define LLVM_TARGET_ARM_TARGETOBJECTFILE_H |
| 12 | |
Anton Korobeynikov | 362dd0b | 2010-02-15 22:37:53 +0000 | [diff] [blame] | 13 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
Chris Lattner | 80ec279 | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 14 | |
| 15 | namespace llvm { |
Jim Grosbach | 764ab52 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 16 | |
Bill Wendling | bdc38e5 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 17 | class MCContext; |
| 18 | class TargetMachine; |
Jim Grosbach | 764ab52 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 19 | |
Bill Wendling | bdc38e5 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 20 | class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF { |
Jason W Kim | 17b443d | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 21 | protected: |
| 22 | const MCSection *AttributesSection; |
Anton Korobeynikov | 4a99f59 | 2012-01-25 22:24:19 +0000 | [diff] [blame] | 23 | bool isAAPCS_ABI; |
Bill Wendling | bdc38e5 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 24 | public: |
Jason W Kim | 17b443d | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 25 | ARMElfTargetObjectFile() : |
| 26 | TargetLoweringObjectFileELF(), |
| 27 | AttributesSection(NULL) |
| 28 | {} |
Jim Grosbach | 764ab52 | 2009-08-11 15:33:49 +0000 | [diff] [blame] | 29 | |
Bill Wendling | bdc38e5 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 30 | virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); |
Jason W Kim | 17b443d | 2010-10-11 23:01:44 +0000 | [diff] [blame] | 31 | |
| 32 | virtual const MCSection *getAttributesSection() const { |
| 33 | return AttributesSection; |
| 34 | } |
Anton Korobeynikov | 4a99f59 | 2012-01-25 22:24:19 +0000 | [diff] [blame] | 35 | |
| 36 | const MCSection * getStaticCtorSection(unsigned Priority) const; |
| 37 | const MCSection * getStaticDtorSection(unsigned Priority) const; |
Bill Wendling | bdc38e5 | 2010-03-09 18:31:07 +0000 | [diff] [blame] | 38 | }; |
| 39 | |
Chris Lattner | 80ec279 | 2009-08-02 00:34:36 +0000 | [diff] [blame] | 40 | } // end namespace llvm |
| 41 | |
| 42 | #endif |