[PATCH] D26455: Handle non-inlined clang::Type::getAs specializations in extract_symbols.py
Stephan Bergmann via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 09:14:29 PST 2016
sberg added inline comments.
================
Comment at: utils/extract_symbols.py:210
# definition is public
+ elif symbol == '_ZNK5clang4Type5getAsINS_14AttributedTypeEEEPKT_v' \
+ or symbol == '_ZNK5clang4Type5getAsINS_26TemplateSpecializationTypeEEEPKT_v' \
----------------
john.brawn wrote:
> Same here, though here you can just check that the symbol starts with _ZNK5clang4Type5getAs.
We still want to filter out the majority of clang::Type::getAs intstantiations (as they're implicit instantiations of the inline function template), so I thought listing the three symbols explicitly in the two should_keep_*_symbol functions is the best way. An alternative would be to use a regex that matches just those three cases---I can do that change if you prefer it that way.
https://reviews.llvm.org/D26455
More information about the llvm-commits
mailing list