MipsTargetObjectFile.h revision 276479
117446Swollman//===-- llvm/Target/MipsTargetObjectFile.h - Mips Object Info ---*- C++ -*-===//
250476Speter//
31638Srgrimes//                     The LLVM Compiler Infrastructure
439079Sdt//
542911Snik// This file is distributed under the University of Illinois Open Source
61638Srgrimes// License. See LICENSE.TXT for details.
71638Srgrimes//
81638Srgrimes//===----------------------------------------------------------------------===//
91638Srgrimes
101638Srgrimes#ifndef LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
1132191Swosch#define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
1232191Swosch
131638Srgrimes#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
141638Srgrimes
15namespace llvm {
16
17  class MipsTargetObjectFile : public TargetLoweringObjectFileELF {
18    const MCSection *SmallDataSection;
19    const MCSection *SmallBSSSection;
20  public:
21
22    void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
23
24
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;
31
32    const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
33                                        SectionKind Kind, Mangler &Mang,
34                                        const TargetMachine &TM) const override;
35  };
36} // end namespace llvm
37
38#endif
39