Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 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 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_TARGET_MBLAZE_TARGETOBJECTFILE_H |
| 11 | #define LLVM_TARGET_MBLAZE_TARGETOBJECTFILE_H |
| 12 | |
| 13 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | |
| 17 | class MBlazeTargetObjectFile : public TargetLoweringObjectFileELF { |
| 18 | const MCSection *SmallDataSection; |
| 19 | const MCSection *SmallBSSSection; |
| 20 | public: |
Wesley Peck | 0a67d92 | 2010-11-08 19:40:01 +0000 | [diff] [blame] | 21 | |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 22 | void Initialize(MCContext &Ctx, const TargetMachine &TM); |
| 23 | |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 24 | /// IsGlobalInSmallSection - Return true if this global address should be |
| 25 | /// placed into small data/bss section. |
| 26 | bool IsGlobalInSmallSection(const GlobalValue *GV, |
| 27 | const TargetMachine &TM, |
| 28 | SectionKind Kind) const; |
| 29 | |
| 30 | bool IsGlobalInSmallSection(const GlobalValue *GV, |
Wesley Peck | 0a67d92 | 2010-11-08 19:40:01 +0000 | [diff] [blame] | 31 | const TargetMachine &TM) const; |
| 32 | |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 33 | const MCSection *SelectSectionForGlobal(const GlobalValue *GV, |
| 34 | SectionKind Kind, |
| 35 | Mangler *Mang, |
| 36 | const TargetMachine &TM) const; |
| 37 | }; |
| 38 | } // end namespace llvm |
| 39 | |
| 40 | #endif |