1 //===-- llvm/Target/MipsTargetObjectFile.h - Mips 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_TARGET_MIPS_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
13 #include "llvm/Target/TargetLoweringObjectFile.h"
17 class MipsTargetObjectFile
: public TargetLoweringObjectFileELF
{
18 const MCSection
*SmallDataSection
;
19 const MCSection
*SmallBSSSection
;
22 void Initialize(MCContext
&Ctx
, const TargetMachine
&TM
);
25 /// IsGlobalInSmallSection - Return true if this global address should be
26 /// placed into small data/bss section.
27 bool IsGlobalInSmallSection(const GlobalValue
*GV
,
28 const TargetMachine
&TM
, SectionKind Kind
)const;
29 bool IsGlobalInSmallSection(const GlobalValue
*GV
,
30 const TargetMachine
&TM
) const;
32 const MCSection
*SelectSectionForGlobal(const GlobalValue
*GV
,
35 const TargetMachine
&TM
) const;
37 // TODO: Classify globals as mips wishes.
39 } // end namespace llvm