XCoreTargetObjectFile.h revision dce4a407a24b04eebc6a376f8e62b41aaa7b071f
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
15namespace llvm {
16
17static const unsigned CodeModelLargeSize = 256;
18
19  class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
20   const MCSection *BSSSectionLarge;
21   const MCSection *DataSectionLarge;
22   const MCSection *ReadOnlySectionLarge;
23   const MCSection *DataRelROSectionLarge;
24  public:
25    void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
26
27    const MCSection *
28      getExplicitSectionGlobal(const GlobalValue *GV,
29                               SectionKind Kind, Mangler &Mang,
30                               const TargetMachine &TM) const override;
31
32    const MCSection *
33      SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
34                             Mangler &Mang,
35                             const TargetMachine &TM) const override;
36
37    const MCSection *getSectionForConstant(SectionKind Kind) const override;
38  };
39} // end namespace llvm
40
41#endif
42