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