Driver: More stubbing for Linux support

Swift SVN r22362
This commit is contained in:
Graham Batty
2014-09-29 21:14:32 +00:00
parent e16e9d5a03
commit a1e0b0fbf7
7 changed files with 74 additions and 12 deletions

View File

@@ -686,3 +686,24 @@ Job *darwin::Linker::constructJob(const JobAction &JA,
return new Command(JA, *this, std::move(Inputs), std::move(Output),
Args.MakeArgString(Exec), Arguments);
}
/// Linux Tools
Job *linux::Linker::constructJob(const JobAction &JA,
std::unique_ptr<JobList> Inputs,
std::unique_ptr<CommandOutput> Output,
const ActionList &InputActions,
const ArgList &Args,
const OutputInfo &OI) const {
assert(Output->getPrimaryOutputType() == types::TY_Image &&
"Invalid linker output type.");
ArgStringList Arguments;
addPrimaryInputsOfType(Arguments, Inputs.get(), types::TY_Object);
addInputsOfType(Arguments, InputActions, types::TY_Object);
std::string Exec = getToolChain().getProgramPath("ld");
return new Command(JA, *this, std::move(Inputs), std::move(Output),
Args.MakeArgString(Exec), Arguments);
}