[llvm-branch-commits] [compiler-rt] c92b81d - [Profile][Windows] Drop extern for __buildid. (#80700)

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 6 15:46:04 PST 2024


Author: Zequan Wu
Date: 2024-02-06T15:45:32-08:00
New Revision: c92b81dde8a3068d90f5c4e7c012ffa34ede7da5

URL: https://github.com/llvm/llvm-project/commit/c92b81dde8a3068d90f5c4e7c012ffa34ede7da5
DIFF: https://github.com/llvm/llvm-project/commit/c92b81dde8a3068d90f5c4e7c012ffa34ede7da5.diff

LOG: [Profile][Windows] Drop extern for __buildid. (#80700)

(cherry picked from commit dd22140e21f2ef51cf031354966a3d41c191c6e7)

Added: 
    

Modified: 
    compiler-rt/lib/profile/InstrProfilingPlatformWindows.c

Removed: 
    


################################################################################
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-branch-commits mailing list