mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[driver] Replaced Tool::constructJob()’s LinkingOutput parameter with an OutputMode parameter.
Moved OutputMode out of Driver and directly into swift::driver. Adjusted callers of Tool::constructJob() to pass an OutputMode. Swift SVN r12497
This commit is contained in:
@@ -32,7 +32,7 @@ using namespace llvm::opt;
|
||||
Job *Swift::constructJob(const JobAction &JA, std::unique_ptr<JobList> Inputs,
|
||||
std::unique_ptr<CommandOutput> Output,
|
||||
const ActionList &InputActions, const ArgList &Args,
|
||||
StringRef LinkingOutput) const {
|
||||
const OutputMode &OM) const {
|
||||
ArgStringList Arguments;
|
||||
|
||||
const char *Exec = getToolChain().getDriver().getSwiftProgramPath();
|
||||
@@ -158,7 +158,7 @@ Job *MergeModule::constructJob(const JobAction &JA,
|
||||
std::unique_ptr<CommandOutput> Output,
|
||||
const ActionList &InputActions,
|
||||
const ArgList &Args,
|
||||
StringRef LinkingOutput) const {
|
||||
const OutputMode &OM) const {
|
||||
ArgStringList Arguments;
|
||||
|
||||
const char *Exec = getToolChain().getDriver().getSwiftProgramPath();
|
||||
@@ -204,7 +204,7 @@ Job *darwin::Linker::constructJob(const JobAction &JA,
|
||||
std::unique_ptr<CommandOutput> Output,
|
||||
const ActionList &InputActions,
|
||||
const ArgList &Args,
|
||||
StringRef LinkingOutput) const {
|
||||
const OutputMode &OM) const {
|
||||
assert(Output->getPrimaryOutputType() == types::TY_Image &&
|
||||
"Invalid linker output type.");
|
||||
ArgStringList Arguments;
|
||||
|
||||
Reference in New Issue
Block a user