summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/codegen-extern-template.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix recent -fmodules-codegen fix testLuboš Luňák2020-01-141-1/+1
|
* -fmodules-codegen should not emit extern templatesLuboš Luňák2020-01-141-0/+9
If a header contains 'extern template', then the template should be provided somewhere by an explicit instantiation, so it is not necessary to generate a copy. Worse, this can lead to an unresolved symbol, because the codegen's object file will not actually contain functions from such a template because of the GVA_AvailableExternally, but the object file for the explicit instantiation will not contain them either because it will be blocked by the information provided by the module. Differential Revision: https://reviews.llvm.org/D69779
OpenPOWER on IntegriCloud