Create the PGOName metadata if a global object's PGO name is different from its mangled name. This should apply to local‐linkage global objects only.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

void
createPGONameMetadata(
    GlobalObject& GO,
    StringRef PGOName);

Parameters

Name

Description

PGOName

Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated.

Created with MrDocs