1//===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
10#define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11
12#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
13
14namespace llvm {
15
16static const unsigned CodeModelLargeSize = 256;
17
18 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
19 MCSection *BSSSectionLarge;
20 MCSection *DataSectionLarge;
21 MCSection *ReadOnlySectionLarge;
22 MCSection *DataRelROSectionLarge;
23
24 public:
25 void initialize(MCContext &Ctx, const TargetMachine &TM,
26 const Module &M) override;
27
28 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
29 const TargetMachine &TM) const override;
30
31 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
32 const TargetMachine &TM) const override;
33
34 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
35 const Constant *C, Align &Alignment,
36 const Function *F) const override;
37 };
38} // end namespace llvm
39
40#endif
41