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_TARGET_XCORE_TARGETOBJECTFILE_H
11 #define LLVM_TARGET_XCORE_TARGETOBJECTFILE_H
13 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
17 static const unsigned CodeModelLargeSize = 256;
19 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
20 const MCSection *BSSSectionLarge;
21 const MCSection *DataSectionLarge;
22 const MCSection *ReadOnlySectionLarge;
24 void Initialize(MCContext &Ctx, const TargetMachine &TM);
26 virtual const MCSection *
27 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
28 Mangler *Mang, const TargetMachine &TM) const;
30 virtual const MCSection *
31 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
32 Mangler *Mang, const TargetMachine &TM) const;
34 virtual const MCSection *getSectionForConstant(SectionKind Kind) const;
36 } // end namespace llvm