mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Driver] Make the list of input files available when creating Jobs.
Previously jobs had to grovel this information out of the raw argument list, which dropped the types we had inferred on input files. This makes things more consistent across the compiler, though arguably we should be able to designate "primary" and "non-primary" inputs on a per-action basis rather than resorting to "global" state. Use this new information to stop passing object file inputs to the Swift frontend, fixing rdar://problem/23213785. The list wouldn't have to live on the Compilation, but I'm going to use it to fix SR-280 / rdar://problem/23878192 as well.
This commit is contained in:
@@ -39,8 +39,10 @@ ToolChain::constructJob(const JobAction &JA,
|
||||
std::unique_ptr<CommandOutput> output,
|
||||
const ActionList &inputActions,
|
||||
const llvm::opt::ArgList &args,
|
||||
ArrayRef<InputPair> topLevelInputFiles,
|
||||
const OutputInfo &OI) const {
|
||||
JobContext context{inputs, *output, inputActions, args, OI};
|
||||
JobContext context{inputs, *output, inputActions, args, topLevelInputFiles,
|
||||
OI};
|
||||
|
||||
auto invocationInfo = [&]() -> InvocationInfo {
|
||||
switch (JA.getKind()) {
|
||||
|
||||
Reference in New Issue
Block a user