1 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
16 static const unsigned CodeModelLargeSize = 256;
18 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
19 MCSection *BSSSectionLarge;
20 MCSection *DataSectionLarge;
21 MCSection *ReadOnlySectionLarge;
22 MCSection *DataRelROSectionLarge;
25 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
27 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
28 const TargetMachine &TM) const override;
30 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
31 const TargetMachine &TM) const override;
33 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
35 unsigned &Align) const override;
37 } // end namespace llvm