================
@@ -2086,46 +2093,77 @@ void Driver::generateCompilationDiagnostics(
return;
}
- // Construct the list of abstract actions to perform for this compilation. On
- // Darwin OSes this uses the driver-driver and builds universal actions.
- const ToolChain &TC = C.getDefaultToolChain();
- if (TC.getTriple().isOSBinFormatMachO())
- BuildUniversalActions(C, TC, Inputs);
- else
- BuildActions(C, C.getArgs(), Inputs, C.getActions());
+ // If we only have IR inputs there's no need for preprocessing.
+ if (!Inputs.empty()) {
+ // Construct the list of abstract actions to perform for this compilation.
+ // On
+ // Darwin OSes this uses the driver-driver and builds universal actions.
----------------
AaronBallman wrote:
```suggestion
// On Darwin OSes this uses the driver-driver and builds universal actions.
```
https://github.com/llvm/llvm-project/pull/165572
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits