[#llvm-collectGlobalObjectNameStrings] = xref:llvm.adoc[llvm]::collectGlobalObjectNameStrings :relfileprefix: ../ :mrdocs: Serialize global‐object name strings into a profile‐ready blob. == Synopsis Declared in `<llvm/ProfileData/InstrProf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Error.adoc[Error] collectGlobalObjectNameStrings( xref:llvm/ArrayRef-08.adoc[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 [cols="1,4"] |=== | Name| Description | *NameStrs* | Names of functions or vtables to serialize. | *doCompression* | Whether to zlib‐compress the payload. | *Result* | Serialized output string. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#