[deserialization] Deserialize transparent functions lazily iff they will be used in mandatory inlining.

Swift SVN r14490
This commit is contained in:
Michael Gottesman
2014-02-28 01:05:01 +00:00
parent a861f9c2c8
commit 29e1a53bbb
10 changed files with 182 additions and 54 deletions

View File

@@ -323,7 +323,7 @@ int main(int argc, char **argv) {
PM.add(createInOutDeshadowing());
break;
case PassKind::MandatoryInlining:
PM.add(createMandatoryInlining());
PM.add(createMandatoryInlining(SILOpts.LinkMode));
break;
case PassKind::PredictableMemoryOpt:
PM.add(createPredictableMemoryOptimizations());