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_TARGET_XCORE_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_XCORE_TARGETOBJECTFILE_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    const MCSection *BSSSectionLarge;
21    const MCSection *DataSectionLarge;
22    const MCSection *ReadOnlySectionLarge;
23   public:
24     void Initialize(MCContext &Ctx, const TargetMachine &TM);
25 
26     const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
27                                               SectionKind Kind, Mangler &Mang,
28                                               const TargetMachine &TM) const
29         LLVM_OVERRIDE;
30 
31     const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
32                                             SectionKind Kind, Mangler &Mang,
33                                             const TargetMachine &TM) const
34         LLVM_OVERRIDE;
35 
36     const MCSection *getSectionForConstant(SectionKind Kind) const
37         LLVM_OVERRIDE;
38   };
39 } // end namespace llvm
40 
41 #endif
42