[llvm-branch-commits] [llvm] llvm-lto2: Add print-guid subcommand. (PR #143992)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 13 13:49:47 PDT 2025


pcc wrote:

> This needs a caveat somewhere (either in printed usage message or in a comment) that this won't work for local linkage symbols (I suppose the user could give the "file:" prefix but that won't work if -funique-internal-linkage-names was specified etc).

I'm not sure that is worth it. The intent is that users of these development tools will refer to the source code. And if you read the source code you'll see the function name `getGUIDAssumingExternalLinkage` which tells you what you need to know.

> Can you also add a test?

Done.

https://github.com/llvm/llvm-project/pull/143992


More information about the llvm-branch-commits mailing list