Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [modules] Don't emit initializers for VarDecls within a module eagerly whenever | Richard Smith | 2016-07-20 | 1 | -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 Smith | 2016-07-15 | 1 | -36/+0 |
| | | | | llvm-svn: 275624 | ||||
* | [modules] Don't pass interesting decls to the consumer for a module file that's | Richard Smith | 2016-07-14 | 1 | -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 |