1 //===-- llvm/Target/MBlazeTargetObjectFile.h - MBlaze Obj. 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_TARGET_MBLAZE_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_MBLAZE_TARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
17 class MBlazeTargetObjectFile
: public TargetLoweringObjectFileELF
{
18 const MCSection
*SmallDataSection
;
19 const MCSection
*SmallBSSSection
;
22 void Initialize(MCContext
&Ctx
, const TargetMachine
&TM
);
24 /// IsGlobalInSmallSection - Return true if this global address should be
25 /// placed into small data/bss section.
26 bool IsGlobalInSmallSection(const GlobalValue
*GV
,
27 const TargetMachine
&TM
,
28 SectionKind Kind
) const;
30 bool IsGlobalInSmallSection(const GlobalValue
*GV
,
31 const TargetMachine
&TM
) const;
33 const MCSection
*SelectSectionForGlobal(const GlobalValue
*GV
,
36 const TargetMachine
&TM
) const;
38 } // end namespace llvm