LLVM API Documentation
00001 //===-- llvm/Target/MipsTargetObjectFile.h - Mips Object Info ---*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #ifndef LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H 00011 #define LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H 00012 00013 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" 00014 00015 namespace llvm { 00016 00017 class MipsTargetObjectFile : public TargetLoweringObjectFileELF { 00018 const MCSection *SmallDataSection; 00019 const MCSection *SmallBSSSection; 00020 public: 00021 00022 void Initialize(MCContext &Ctx, const TargetMachine &TM) override; 00023 00024 00025 /// IsGlobalInSmallSection - Return true if this global address should be 00026 /// placed into small data/bss section. 00027 bool IsGlobalInSmallSection(const GlobalValue *GV, 00028 const TargetMachine &TM, SectionKind Kind)const; 00029 bool IsGlobalInSmallSection(const GlobalValue *GV, 00030 const TargetMachine &TM) const; 00031 00032 const MCSection *SelectSectionForGlobal(const GlobalValue *GV, 00033 SectionKind Kind, Mangler &Mang, 00034 const TargetMachine &TM) const override; 00035 }; 00036 } // end namespace llvm 00037 00038 #endif