2012-04-14 09:54:10 -04:00
|
|
|
//===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
|
2009-10-14 13:57:32 -04:00
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2015-01-18 11:17:27 -05:00
|
|
|
#ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
|
|
|
|
|
#define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
|
2009-10-14 13:57:32 -04:00
|
|
|
|
2010-02-16 04:30:23 -05:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2009-10-14 13:57:32 -04:00
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
2014-11-24 04:08:18 -05:00
|
|
|
static const unsigned CodeModelLargeSize = 256;
|
|
|
|
|
|
2009-10-14 13:57:32 -04:00
|
|
|
class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
|
2015-05-27 14:44:32 -04:00
|
|
|
MCSection *BSSSectionLarge;
|
|
|
|
|
MCSection *DataSectionLarge;
|
|
|
|
|
MCSection *ReadOnlySectionLarge;
|
|
|
|
|
MCSection *DataRelROSectionLarge;
|
|
|
|
|
|
2009-10-14 13:57:32 -04:00
|
|
|
public:
|
2014-11-24 04:08:18 -05:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
|
|
|
|
|
2015-05-27 14:44:32 -04:00
|
|
|
MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
|
|
|
|
|
Mangler &Mang,
|
|
|
|
|
const TargetMachine &TM) const override;
|
2014-11-24 04:08:18 -05:00
|
|
|
|
2015-05-27 14:44:32 -04:00
|
|
|
MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
|
|
|
|
Mangler &Mang,
|
|
|
|
|
const TargetMachine &TM) const override;
|
2009-10-14 13:57:32 -04:00
|
|
|
|
2015-12-30 06:46:15 -05:00
|
|
|
MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
|
2016-07-23 16:41:05 -04:00
|
|
|
const Constant *C,
|
|
|
|
|
unsigned &Align) const override;
|
2009-10-14 13:57:32 -04:00
|
|
|
};
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
|
|
#endif
|