LLVM API Documentation

Public Member Functions
llvm::XCoreTargetObjectFile Class Reference

#include <XCoreTargetObjectFile.h>

Inheritance diagram for llvm::XCoreTargetObjectFile:
Inheritance graph
[legend]
Collaboration diagram for llvm::XCoreTargetObjectFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Initialize (MCContext &Ctx, const TargetMachine &TM) override
const MCSectiongetExplicitSectionGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const override
const MCSectionSelectSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const override
const MCSectiongetSectionForConstant (SectionKind Kind, const Constant *C) const override

Detailed Description

Definition at line 19 of file XCoreTargetObjectFile.h.


Member Function Documentation

const MCSection * XCoreTargetObjectFile::getExplicitSectionGlobal ( const GlobalValue GV,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM 
) const [override, virtual]

Targets should implement this method to assign a section to globals with an explicit section specfied. The implementation of this method can assume that GV->hasSection() is true.

Reimplemented from llvm::TargetLoweringObjectFileELF.

Definition at line 122 of file XCoreTargetObjectFile.cpp.

References llvm::TargetLoweringObjectFile::getContext(), llvm::MCContext::getELFSection(), llvm::GlobalValue::getSection(), getXCoreSectionFlags(), getXCoreSectionType(), llvm::SectionKind::isReadOnly(), llvm::report_fatal_error(), and llvm::StringRef::startswith().

const MCSection * XCoreTargetObjectFile::getSectionForConstant ( SectionKind  Kind,
const Constant C 
) const [override, virtual]

Given a constant with the SectionKind, return a section that it should be placed in.

getSectionForConstant - Given a mergeable constant with the specified size and relocation information, return a section that it should be placed in.

Reimplemented from llvm::TargetLoweringObjectFileELF.

Definition at line 169 of file XCoreTargetObjectFile.cpp.

References llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::MCObjectFileInfo::MergeableConst16Section, llvm::MCObjectFileInfo::MergeableConst4Section, llvm::MCObjectFileInfo::MergeableConst8Section, and llvm::MCObjectFileInfo::ReadOnlySection.

void XCoreTargetObjectFile::Initialize ( MCContext ctx,
const TargetMachine TM 
) [override, virtual]
const MCSection * XCoreTargetObjectFile::SelectSectionForGlobal ( const GlobalValue GV,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM 
) const [override, virtual]

The documentation for this class was generated from the following files: