Home | History | Annotate | Download | only in XCore
      1 //===-- XCoreTargetObjectFile.h - XCore 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_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
     11 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
     12 
     13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
     14 
     15 namespace llvm {
     16 
     17 static const unsigned CodeModelLargeSize = 256;
     18 
     19   class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
     20     MCSection *BSSSectionLarge;
     21     MCSection *DataSectionLarge;
     22     MCSection *ReadOnlySectionLarge;
     23     MCSection *DataRelROSectionLarge;
     24 
     25   public:
     26     void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
     27 
     28     MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
     29                                         Mangler &Mang,
     30                                         const TargetMachine &TM) const override;
     31 
     32     MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
     33                                       Mangler &Mang,
     34                                       const TargetMachine &TM) const override;
     35 
     36     MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
     37                                      const Constant *C) const override;
     38   };
     39 } // end namespace llvm
     40 
     41 #endif
     42