summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/unused-global-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [modules] Don't emit initializers for VarDecls within a module eagerly wheneverRichard Smith2016-07-201-0/+37
| | | | | | | | | | | | we first touch any part of that module. Instead, defer them until the first time that module is (transitively) imported. The initializer step for a module then recursively initializes modules that its own headers imported. For example, this avoids running the <iostream> global initializer in programs that don't actually use iostreams, but do use other parts of the standard library. llvm-svn: 276159
* Revert r275481, r275490. This broke modules bootstrap.Richard Smith2016-07-151-36/+0
| | | | llvm-svn: 275624
* [modules] Don't pass interesting decls to the consumer for a module file that'sRichard Smith2016-07-141-0/+36
passed on the command line but never actually used. We consider a (top-level) module to be used if any part of it is imported, either by the current translation unit, or by any part of a top-level module that is itself used. (Put another way, a module is used if an implicit modules build would have loaded its .pcm file.) llvm-svn: 275481
OpenPOWER on IntegriCloud