blob: 237b1602cf3db29d6b6cec55602c140c5f9b0b92 [file] [log] [blame]
Chris Lattnerb71b9092009-08-13 06:28:06 +00001//===-- llvm/Target/MipsTargetObjectFile.h - Mips 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_MIPS_TARGETOBJECTFILE_H
11#define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
12
Anton Korobeynikov362dd0b2010-02-15 22:37:53 +000013#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Chris Lattnerb71b9092009-08-13 06:28:06 +000014
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);
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,
34 Mangler *Mang,
35 const TargetMachine &TM) const;
36
37 // TODO: Classify globals as mips wishes.
38 };
39} // end namespace llvm
40
41#endif