Richard Smith dc1f042171 [modules] Don't emit initializers for VarDecls within a module eagerly whenever
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
2016-07-20 19:10:16 +00:00
..
2014-08-25 23:33:46 +00:00
2014-12-23 19:30:13 +00:00
2014-10-01 23:16:30 +00:00
2016-04-28 14:13:28 +00:00
2015-01-22 23:07:47 +00:00
2015-08-09 01:50:14 +00:00