blob: ff210604148d14b30ba2940195dde7e9d7c69998 [file] [log] [blame]
Chris Lattner80ec2792009-08-02 00:34:36 +00001//===-- 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 Korobeynikov362dd0b2010-02-15 22:37:53 +000013#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Chris Lattner80ec2792009-08-02 00:34:36 +000014
15namespace llvm {
Jim Grosbach764ab522009-08-11 15:33:49 +000016
Bill Wendlingbdc38e52010-03-09 18:31:07 +000017class MCContext;
18class TargetMachine;
Jim Grosbach764ab522009-08-11 15:33:49 +000019
Bill Wendlingbdc38e52010-03-09 18:31:07 +000020class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
Jason W Kim17b443d2010-10-11 23:01:44 +000021protected:
22 const MCSection *AttributesSection;
Anton Korobeynikov4a99f592012-01-25 22:24:19 +000023 bool isAAPCS_ABI;
Bill Wendlingbdc38e52010-03-09 18:31:07 +000024public:
Jason W Kim17b443d2010-10-11 23:01:44 +000025 ARMElfTargetObjectFile() :
26 TargetLoweringObjectFileELF(),
27 AttributesSection(NULL)
28 {}
Jim Grosbach764ab522009-08-11 15:33:49 +000029
Bill Wendlingbdc38e52010-03-09 18:31:07 +000030 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
Jason W Kim17b443d2010-10-11 23:01:44 +000031
32 virtual const MCSection *getAttributesSection() const {
33 return AttributesSection;
34 }
Anton Korobeynikov4a99f592012-01-25 22:24:19 +000035
36 const MCSection * getStaticCtorSection(unsigned Priority) const;
37 const MCSection * getStaticDtorSection(unsigned Priority) const;
Bill Wendlingbdc38e52010-03-09 18:31:07 +000038};
39
Chris Lattner80ec2792009-08-02 00:34:36 +000040} // end namespace llvm
41
42#endif