Serialize referenced PGO function-name variables into Result.
Declared in <llvm/ProfileData/InstrProf.h>
Error
collectPGOFuncNameStrings(
ArrayRef<GlobalVariable*> NameVars,
std::string& Result,
bool doCompression = true);
Each element of NameVars holds a function's PGO name string (see createPGOFuncNameVar). The output format matches collectGlobalObjectNameStrings.
Success, or an error if serialization or compression fails.
| Name | Description |
|---|---|
| NameVars | Referenced PGO function-name globals. |
| Result | Serialized output string. |
| doCompression | Whether to zlib-compress the payload. |