LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MipsTargetObjectFile.h
Go to the documentation of this file.
1 //===-- 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 
14 
15 namespace llvm {
16 
18  const MCSection *SmallDataSection;
19  const MCSection *SmallBSSSection;
20  const MCSection *ReginfoSection;
21  public:
22 
23  void Initialize(MCContext &Ctx, const TargetMachine &TM);
24 
25 
26  /// IsGlobalInSmallSection - Return true if this global address should be
27  /// placed into small data/bss section.
28  bool IsGlobalInSmallSection(const GlobalValue *GV,
29  const TargetMachine &TM, SectionKind Kind)const;
30  bool IsGlobalInSmallSection(const GlobalValue *GV,
31  const TargetMachine &TM) const;
32 
34  SectionKind Kind,
35  Mangler *Mang,
36  const TargetMachine &TM) const;
37 
38  // TODO: Classify globals as mips wishes.
39  const MCSection *getReginfoSection() const { return ReginfoSection; }
40  };
41 } // end namespace llvm
42 
43 #endif
const MCSection * getReginfoSection() const
void Initialize(MCContext &Ctx, const TargetMachine &TM)
bool IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, SectionKind Kind) const
const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const