Skip to content

Commit 34f423f

Browse files
author
David Ungar
committed
Add clarifying comment to forEachInputNotProducingSupplementaryOutput.
1 parent 71a0a56 commit 34f423f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Frontend/FrontendInputsAndOutputs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ bool FrontendInputsAndOutputs::forEachInputProducingSupplementaryOutput(
373373

374374
bool FrontendInputsAndOutputs::forEachInputNotProducingSupplementaryOutput(
375375
llvm::function_ref<bool(const InputFile &)> fn) const {
376+
// If no primary inputs, compiler is in whole-module-optimzation mode, and
377+
// every input can produce supplementary outputs.
376378
return hasPrimaryInputs() ? forEachNonPrimaryInput(fn) : false;
377379
}
378380

0 commit comments

Comments
 (0)