[compiler-rt] [Profile][Windows] Drop extern for __buildid. (PR #80700)

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 08:10:42 PST 2024


https://github.com/ZequanWu created https://github.com/llvm/llvm-project/pull/80700

None

>From 911706c1cf292e10d1b38584a3892770db4bd906 Mon Sep 17 00:00:00 2001
From: My Name <zequanwu at google.com>
Date: Mon, 5 Feb 2024 11:06:06 -0500
Subject: [PATCH] [Profile][Windows] Drop extern for __buildid.

---
 compiler-rt/lib/profile/InstrProfilingPlatformWindows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c b/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
index c976776ae59e9c..0751b28f81d0ac 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
@@ -77,7 +77,7 @@ ValueProfNode *EndVNode = &VNodesEnd;
 /* lld-link provides __buildid symbol which ponits to the 16 bytes build id when
  * using /build-id flag. https://lld.llvm.org/windows_support.html#lld-flags */
 #define BUILD_ID_LEN 16
-COMPILER_RT_WEAK extern uint8_t __buildid[BUILD_ID_LEN];
+COMPILER_RT_WEAK uint8_t __buildid[BUILD_ID_LEN];
 COMPILER_RT_VISIBILITY int __llvm_write_binary_ids(ProfDataWriter *Writer) {
   if (*__buildid) {
     if (Writer &&



More information about the llvm-commits mailing list