blob: 11d70db5ba8dccd53a2bcf1a958c20fef53179aa [file] [log] [blame]
Akira Hatanakae2489122011-04-15 21:51:11 +00001//===-- llvm/Target/MipsTargetObjectFile.h - Mips Object Info ---*- C++ -*-===//
Chris Lattner68535f72009-08-13 06:28:06 +00002//
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//
Akira Hatanakae2489122011-04-15 21:51:11 +00008//===----------------------------------------------------------------------===//
Chris Lattner68535f72009-08-13 06:28:06 +00009
10#ifndef LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
11#define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
12
Anton Korobeynikovab663a02010-02-15 22:37:53 +000013#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Chris Lattner68535f72009-08-13 06:28:06 +000014
15namespace llvm {
16
17 class MipsTargetObjectFile : public TargetLoweringObjectFileELF {
18 const MCSection *SmallDataSection;
19 const MCSection *SmallBSSSection;
20 public:
Bruno Cardoso Lopesed874ef2011-03-04 17:51:39 +000021
Rafael Espindola10705012014-02-08 06:07:27 +000022 void Initialize(MCContext &Ctx, const TargetMachine &TM) LLVM_OVERRIDE;
Chris Lattner68535f72009-08-13 06:28:06 +000023
Bruno Cardoso Lopesed874ef2011-03-04 17:51:39 +000024
Chris Lattner68535f72009-08-13 06:28:06 +000025 /// IsGlobalInSmallSection - Return true if this global address should be
26 /// placed into small data/bss section.
27 bool IsGlobalInSmallSection(const GlobalValue *GV,
Akira Hatanakae2489122011-04-15 21:51:11 +000028 const TargetMachine &TM, SectionKind Kind)const;
Chris Lattner68535f72009-08-13 06:28:06 +000029 bool IsGlobalInSmallSection(const GlobalValue *GV,
Bruno Cardoso Lopesed874ef2011-03-04 17:51:39 +000030 const TargetMachine &TM) const;
31
Chris Lattner68535f72009-08-13 06:28:06 +000032 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
Rafael Espindola10705012014-02-08 06:07:27 +000033 SectionKind Kind, Mangler *Mang,
34 const TargetMachine &TM) const
35 LLVM_OVERRIDE;
Chris Lattner68535f72009-08-13 06:28:06 +000036 };
37} // end namespace llvm
38
39#endif