[Attributor][modulemap] Revert r368064 but fix the build
authorKristina Brooks <notstina@gmail.com>
Tue, 6 Aug 2019 19:53:19 +0000 (19:53 +0000)
committerKristina Brooks <notstina@gmail.com>
Tue, 6 Aug 2019 19:53:19 +0000 (19:53 +0000)
commit26e60f065318697ed411f9b4158880d6872356ef
treedfffed2e0d74940da370bb1e4ba723bd1da8c53d
parent5fdf10bae878ea85959493c4954193fb0825b4cd
[Attributor][modulemap] Revert r368064 but fix the build

Commit r368064 was necessary after r367953 (D65712) broke the module
build. That happened, apparently, because the template class IRAttribute
defined in the header had a virtual method defined in the corresponding
source file (IRAttribute::manifest). To unbreak the situation this patch
introduces a helper function IRAttributeManifest::manifestAttrs which
is used to implement IRAttribute::manifest in the header. The deifnition
of the helper function is still in the source file.

Patch by jdoerfert (Johannes Doerfert)

Differential Revision: https://reviews.llvm.org/D65821

llvm-svn: 368076
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/include/llvm/module.modulemap
llvm/lib/Transforms/IPO/Attributor.cpp