[compiler-rt] [Profile] Dump binary id to raw profiles on Windows. (PR #75618)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 16:01:29 PST 2023


================
@@ -74,7 +74,14 @@ ValueProfNode *__llvm_profile_end_vnodes(void) { return &VNodesEnd; }
 ValueProfNode *CurrentVNode = &VNodesStart + 1;
 ValueProfNode *EndVNode = &VNodesEnd;
 
+uint64_t BuildIdLen = 16;
+COMPILER_RT_WEAK extern uint8_t __buildid[16];
 COMPILER_RT_VISIBILITY int __llvm_write_binary_ids(ProfDataWriter *Writer) {
+  if (*__buildid) {
----------------
petrhosek wrote:

Oh I haven't realized weak symbols behave differently on Windows, ignore this comment and thank you the explanation.

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


More information about the llvm-commits mailing list