1 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
17 static const unsigned CodeModelLargeSize = 256;
19 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
20 MCSection *BSSSectionLarge;
21 MCSection *DataSectionLarge;
22 MCSection *ReadOnlySectionLarge;
23 MCSection *DataRelROSectionLarge;
26 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
28 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
30 const TargetMachine &TM) const override;
32 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
34 const TargetMachine &TM) const override;
36 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
37 const Constant *C) const override;
39 } // end namespace llvm