Fix uninitialized variable
[llvm-core.git] / lib / Target / Mips / MipsTargetObjectFile.h
bloba37ec154ff79cd83351883ed6978fde2e2b05503
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 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_MIPS_MIPSTARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
15 namespace llvm {
16 class MipsTargetMachine;
17 class MipsTargetObjectFile : public TargetLoweringObjectFileELF {
18 MCSection *SmallDataSection;
19 MCSection *SmallBSSSection;
20 const MipsTargetMachine *TM;
22 bool IsGlobalInSmallSection(const GlobalObject *GO, const TargetMachine &TM,
23 SectionKind Kind) const;
24 bool IsGlobalInSmallSectionImpl(const GlobalObject *GO,
25 const TargetMachine &TM) const;
26 public:
28 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
30 /// Return true if this global address should be placed into small data/bss
31 /// section.
32 bool IsGlobalInSmallSection(const GlobalObject *GO,
33 const TargetMachine &TM) const;
35 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
36 const TargetMachine &TM) const override;
38 /// Return true if this constant should be placed into small data section.
39 bool IsConstantInSmallSection(const DataLayout &DL, const Constant *CN,
40 const TargetMachine &TM) const;
42 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
43 const Constant *C,
44 unsigned &Align) const override;
45 /// Describe a TLS variable address within debug info.
46 const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
48 } // end namespace llvm
50 #endif