diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 9e5de90561a31..a6d58cc36d766 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// // -// This file contains implementations of parts of the compiler driver. +// This file contains implementations of parts of the compiler driver. test. // //===----------------------------------------------------------------------===// @@ -72,7 +72,7 @@ Driver::Driver(StringRef DriverExecutable, : Opts(createSwiftOptTable()), Diags(Diags), Name(Name), DriverExecutable(DriverExecutable), DefaultTargetTriple(llvm::sys::getDefaultTargetTriple()) { - + // The driver kind must be parsed prior to parsing arguments, since that // affects how arguments are parsed. parseDriverKind(Args.slice(1)); @@ -908,7 +908,7 @@ Driver::buildCompilation(const ToolChain &TC, translateInputAndPathArgs(*ArgList, workingDirectory)); validateArgs(Diags, *TranslatedArgList, TC.getTriple()); - + // Perform toolchain specific args validation. TC.validateArguments(Diags, *TranslatedArgList, DefaultTargetTriple); @@ -1003,7 +1003,7 @@ Driver::buildCompilation(const ToolChain &TC, llvm_unreachable("Unknown OutputLevel argument!"); } - + // About to move argument list, so capture some flags that will be needed // later. const bool DriverPrintActions = @@ -1499,7 +1499,7 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args, if (Args.hasArg(options::OPT_static)) Diags.diagnose(SourceLoc(), diag::error_static_emit_executable_disallowed); - + OI.LinkAction = LinkKind::Executable; OI.CompilerOutputType = CompilerOutputType; break; @@ -2530,14 +2530,14 @@ static StringRef baseNameForImage(const JobAction *JA, const OutputInfo &OI, StringRef BaseInput, StringRef BaseName) { if (JA->size() == 1 && OI.ModuleNameIsFallback && BaseInput != "-") return llvm::sys::path::stem(BaseInput); - + if (isa(JA)) { Buffer = "lib"; Buffer.append(BaseName); Buffer.append(Triple.isOSWindows() ? ".lib" : ".a"); return Buffer.str(); } - + auto link = dyn_cast(JA); if (!link) return BaseName; @@ -2993,7 +2993,7 @@ Job *Driver::buildJobsForAction(Compilation &C, const JobAction *JA, // 4. Construct a Job which produces the right CommandOutput. std::unique_ptr ownedJob = TC.constructJob(*JA, C, std::move(InputJobs), - InputActions, + InputActions, std::move(Output), OI); Job *J = C.addJob(std::move(ownedJob)); @@ -3557,7 +3557,7 @@ void Driver::printHelp(bool ShowHidden) const { IncludedFlagsBitmask, ExcludedFlagsBitmask, /*ShowAllAliases*/false); - // These strings match the descriptions found in the corresponding swiftpm + // These strings match the descriptions found in the corresponding swiftpm // help pages if (driverKind == DriverKind::Interactive) { llvm::outs() << "\nSEE ALSO - PACKAGE MANAGER COMMANDS: \n" @@ -3566,7 +3566,7 @@ void Driver::printHelp(bool ShowHidden) const { "\t\"swift run\" Build and run an executable product \n" "\t\"swift test\" Build and run tests \n"; } else { - llvm::outs() << "\nSEE ALSO: swift build, swift run, swift package, " + llvm::outs() << "\nSEE ALSO: swift build, swift run, swift package, " "swift test \n"; }