blob: c6a7261439d7b084166fc908e7e970214ebea90f [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;
Bill Wendlingbdc38e52010-03-09 18:31:07 +000023public:
Jason W Kim17b443d2010-10-11 23:01:44 +000024 ARMElfTargetObjectFile() :
25 TargetLoweringObjectFileELF(),
26 AttributesSection(NULL)
27 {}
Jim Grosbach764ab522009-08-11 15:33:49 +000028
Bill Wendlingbdc38e52010-03-09 18:31:07 +000029 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
Jason W Kim17b443d2010-10-11 23:01:44 +000030
31 virtual const MCSection *getAttributesSection() const {
32 return AttributesSection;
33 }
Bill Wendlingbdc38e52010-03-09 18:31:07 +000034};
35
Chris Lattner80ec2792009-08-02 00:34:36 +000036} // end namespace llvm
37
38#endif