1 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
17 static const unsigned CodeModelLargeSize
= 256;
19 class XCoreTargetObjectFile
: public TargetLoweringObjectFileELF
{
20 MCSection
*BSSSectionLarge
;
21 MCSection
*DataSectionLarge
;
22 MCSection
*ReadOnlySectionLarge
;
23 MCSection
*DataRelROSectionLarge
;
26 void Initialize(MCContext
&Ctx
, const TargetMachine
&TM
) override
;
28 MCSection
*getExplicitSectionGlobal(const GlobalObject
*GO
, SectionKind Kind
,
29 const TargetMachine
&TM
) const override
;
31 MCSection
*SelectSectionForGlobal(const GlobalObject
*GO
, SectionKind Kind
,
32 const TargetMachine
&TM
) const override
;
34 MCSection
*getSectionForConstant(const DataLayout
&DL
, SectionKind Kind
,
36 unsigned &Align
) const override
;
38 } // end namespace llvm