zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / MBlaze / MBlazeTargetObjectFile.h
blob20e77026c687a387290ca5849f9b7f7e0bdc7ff7
1 //===-- llvm/Target/MBlazeTargetObjectFile.h - MBlaze Obj. 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_TARGET_MBLAZE_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_MBLAZE_TARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
15 namespace llvm {
17 class MBlazeTargetObjectFile : public TargetLoweringObjectFileELF {
18 const MCSection *SmallDataSection;
19 const MCSection *SmallBSSSection;
20 public:
22 void Initialize(MCContext &Ctx, const TargetMachine &TM);
25 /// IsGlobalInSmallSection - Return true if this global address should be
26 /// placed into small data/bss section.
27 bool IsGlobalInSmallSection(const GlobalValue *GV,
28 const TargetMachine &TM,
29 SectionKind Kind) const;
31 bool IsGlobalInSmallSection(const GlobalValue *GV,
32 const TargetMachine &TM) const;
34 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
35 SectionKind Kind,
36 Mangler *Mang,
37 const TargetMachine &TM) const;
39 } // end namespace llvm
41 #endif