diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-01-31 21:28:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-01-31 21:28:19 +0000 |
commit | 4d9230107591dc1f8e9cc3a6edfd4d3e16c6c497 (patch) | |
tree | 423243ae66076234c5b37c59cc9e1c2214a78a59 /llvm/utils/vim/vimrc | |
parent | 5a473d230d047111706f6a550004a0600c7e4e32 (diff) | |
download | bcm5719-llvm-4d9230107591dc1f8e9cc3a6edfd4d3e16c6c497.tar.gz bcm5719-llvm-4d9230107591dc1f8e9cc3a6edfd4d3e16c6c497.zip |
Fix modules codegen to be compatible with modules-ts
The Module::WithCodegen flag was only being set when the module was
parsed from a ModuleMap. Instead set it late, in the ASTWriter to match
the layer where the MODULAR_CODEGEN_DECLs list is determined (the
WithCodegen flag essentially means "are this module's decls in
MODULAR_CODEGEN_DECLs").
When simultaneous emission of AST file and modular object is implemented
this may need to change - the Module::WithCodegen flag will need to be
set earlier, and ideally the MODULAR_CODEGEN_DECLs gathering will
consult this flag (that's not possible right now since Decls destined
for an AST File don't have a Module - only if they're /read/ from a
Module is that true - I expect that would need to change as well).
llvm-svn: 293692
Diffstat (limited to 'llvm/utils/vim/vimrc')
0 files changed, 0 insertions, 0 deletions