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

Synopsis

Declared in <llvm/Target/TargetLoweringObjectFile.h>

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

Description

This should not be passed external (or available externally) globals.

Return Value

The section used to emit GO.

Parameters

Name

Description

GO

Global object or function definition being placed.

Kind

Precomputed section kind for GO.

TM

Target machine whose sectioning conventions apply.

Created with MrDocs