[llvm] [Windows] Fix Registry static data members not exported by extract_symbols.py in static builds with plugin support (PR #163391)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 23:56:15 PDT 2025
================
@@ -105,6 +105,11 @@ def should_keep_microsoft_symbol(symbol, calling_convention_decoration):
# Skip X86GenMnemonicTables functions, they are not exposed from llvm/include/.
elif re.match(r"\?is[A-Z0-9]*@X86 at llvm", symbol):
return None
+ # Keep Registry<T>::Head and Registry<T>::Tail static members for plugin support.
+ # Pattern matches: ?Head@?$Registry@<template_args>@llvm@@ or ?Tail@?$Registry at ...
+ elif ("?$Registry@" in symbol and "@llvm@@" in symbol and
+ (symbol.startswith("?Head@") or symbol.startswith("?Tail@"))):
+ return symbol
----------------
zond wrote:
Done
https://github.com/llvm/llvm-project/pull/163391
More information about the llvm-commits
mailing list