File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,10 @@ def should_keep_microsoft_symbol(symbol, calling_convention_decoration):
141
141
# Remove calling convention decoration from names
142
142
match = re .match ('[_@]([^@]+)' , symbol )
143
143
if match :
144
- return match .group (1 )
144
+ symbol = match .group (1 )
145
+ # Discard floating point/SIMD constants.
146
+ if symbol .startswith (("__xmm@" , "__ymm@" , "__real@" )):
147
+ return None
145
148
return symbol
146
149
# Function template instantiations start with ?$; keep the instantiations of
147
150
# clang::Type::getAs, as some of them are explipict specializations that are
@@ -165,6 +168,9 @@ def should_keep_microsoft_symbol(symbol, calling_convention_decoration):
165
168
# namespace doesn't exist outside of that translation unit.
166
169
elif re .search ('\?A(0x\w+)?@' , symbol ):
167
170
return None
171
+ # Skip X86GenMnemonicTables functions, they are not exposed from llvm/include/.
172
+ elif re .match ('\?is[A-Z0-9]*@X86@llvm' , symbol ):
173
+ return None
168
174
# Keep mangled llvm:: and clang:: function symbols. How we detect these is a
169
175
# bit of a mess and imprecise, but that avoids having to completely demangle
170
176
# the symbol name. The outermost namespace is at the end of the identifier
You can’t perform that action at this time.
0 commit comments