LLVM API Documentation
00001 //===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H 00011 #define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H 00012 00013 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" 00014 00015 namespace llvm { 00016 00017 static const unsigned CodeModelLargeSize = 256; 00018 00019 class XCoreTargetObjectFile : public TargetLoweringObjectFileELF { 00020 const MCSection *BSSSectionLarge; 00021 const MCSection *DataSectionLarge; 00022 const MCSection *ReadOnlySectionLarge; 00023 const MCSection *DataRelROSectionLarge; 00024 public: 00025 void Initialize(MCContext &Ctx, const TargetMachine &TM) override; 00026 00027 const MCSection * 00028 getExplicitSectionGlobal(const GlobalValue *GV, 00029 SectionKind Kind, Mangler &Mang, 00030 const TargetMachine &TM) const override; 00031 00032 const MCSection * 00033 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 00034 Mangler &Mang, 00035 const TargetMachine &TM) const override; 00036 00037 const MCSection *getSectionForConstant(SectionKind Kind, 00038 const Constant *C) const override; 00039 }; 00040 } // end namespace llvm 00041 00042 #endif