Compute the section used to emit a defined global object or function.

Synopses

Declared in <llvm/Target/TargetLoweringObjectFile.h>

Compute the section used to emit a defined global object or function.

MCSection*
SectionForGlobal(
    GlobalObject const* GO,
    TargetMachine const& TM) const;

Compute the section used to emit a defined global object or function.

MCSection*
SectionForGlobal(
    GlobalObject const* GO,
    SectionKind Kind,
    TargetMachine const& TM) const;

Return Value

The section used to emit GO.

Parameters

Name

Description

GO

Global object or function definition being placed.

TM

Target machine whose sectioning conventions apply.

Kind

Precomputed section kind for GO.

Created with MrDocs