llvm::collectGlobalObjectNameStrings

Serialize global-object name strings into a profile-ready blob.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

Error
collectGlobalObjectNameStrings(
    ArrayRef<std::string> NameStrs,
    bool doCompression,
    std::string& Result);

Description

Result has three ULEB128-framed fields: uncompressed length, compressed length (zero when compression is off), and the payload (compressed or raw).

Return Value

Success, or an error if serialization or compression fails.

Parameters

NameDescription
NameStrsNames of functions or vtables to serialize.
doCompressionWhether to zlib-compress the payload.
ResultSerialized output string.