Serialize global-object name strings into a profile-ready blob.
Declared in <llvm/ProfileData/InstrProf.h>
Error
collectGlobalObjectNameStrings(
ArrayRef<std::string> NameStrs,
bool doCompression,
std::string& Result);
Result has three ULEB128-framed fields: uncompressed length, compressed length (zero when compression is off), and the payload (compressed or raw).
Success, or an error if serialization or compression fails.
| Name | Description |
|---|---|
| NameStrs | Names of functions or vtables to serialize. |
| doCompression | Whether to zlib-compress the payload. |
| Result | Serialized output string. |