Skip to content

Commit 91e8538

Browse files
committed
When emitting dependencies, only emit supplementary outputs for the current input.
1 parent 81c9f83 commit 91e8538

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

lib/Frontend/FrontendOptions.cpp

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,15 @@ void FrontendOptions::forAllOutputPaths(
116116
else
117117
fn(input.outputFilename());
118118
}
119-
(void)InputsAndOutputs.forEachInputProducingSupplementaryOutput(
120-
[&](const InputFile &inp) -> bool {
121-
const SupplementaryOutputPaths &outs =
122-
inp.getPrimarySpecificPaths().SupplementaryOutputs;
123-
const std::string *outputs[] = {&outs.ModuleOutputPath,
124-
&outs.ModuleDocOutputPath,
125-
&outs.ObjCHeaderOutputPath};
126-
for (const std::string *next : outputs) {
127-
if (!next->empty())
128-
fn(*next);
129-
}
130-
return false;
131-
});
119+
const SupplementaryOutputPaths &outs =
120+
input.getPrimarySpecificPaths().SupplementaryOutputs;
121+
const std::string *outputs[] = {&outs.ModuleOutputPath,
122+
&outs.ModuleDocOutputPath,
123+
&outs.ObjCHeaderOutputPath};
124+
for (const std::string *next : outputs) {
125+
if (!next->empty())
126+
fn(*next);
127+
}
132128
}
133129

134130
const char *

0 commit comments

Comments
 (0)