2012-02-18 12:03:15 +00:00
|
|
|
//===-- XCoreTargetObjectFile.h - XCore Object Info -------------*- C++ -*-===//
|
2009-07-28 03:13:23 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_XCORE_XCORETARGETOBJECTFILE_H
|
2009-07-28 03:13:23 +00:00
|
|
|
|
2010-02-15 22:37:53 +00:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2009-07-28 03:13:23 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2013-12-02 10:18:31 +00:00
|
|
|
static const unsigned CodeModelLargeSize = 256;
|
|
|
|
|
2009-07-28 03:13:23 +00:00
|
|
|
class XCoreTargetObjectFile : public TargetLoweringObjectFileELF {
|
2013-12-02 10:18:31 +00:00
|
|
|
const MCSection *BSSSectionLarge;
|
|
|
|
const MCSection *DataSectionLarge;
|
|
|
|
const MCSection *ReadOnlySectionLarge;
|
2014-02-11 10:36:26 +00:00
|
|
|
const MCSection *DataRelROSectionLarge;
|
2009-07-28 03:13:23 +00:00
|
|
|
public:
|
2014-04-29 07:57:00 +00:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2009-07-31 18:48:30 +00:00
|
|
|
|
2014-03-02 09:09:27 +00:00
|
|
|
const MCSection *
|
|
|
|
getExplicitSectionGlobal(const GlobalValue *GV,
|
|
|
|
SectionKind Kind, Mangler &Mang,
|
|
|
|
const TargetMachine &TM) const override;
|
|
|
|
|
|
|
|
const MCSection *
|
|
|
|
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
|
|
|
Mangler &Mang,
|
|
|
|
const TargetMachine &TM) const override;
|
|
|
|
|
2014-07-14 22:57:27 +00:00
|
|
|
const MCSection *getSectionForConstant(SectionKind Kind,
|
|
|
|
const Constant *C) const override;
|
2009-07-28 03:13:23 +00:00
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|