LLVM API Documentation

MipsTargetObjectFile.h

Go to the documentation of this file.
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_TARGET_MIPS_TARGETOBJECTFILE_H
00011 #define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
00012 
00013 #include "llvm/Target/TargetLoweringObjectFile.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);
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,
00034                                             Mangler *Mang,
00035                                             const TargetMachine &TM) const;
00036       
00037     // TODO: Classify globals as mips wishes.
00038   };
00039 } // end namespace llvm
00040 
00041 #endif