10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
//
13
- // This file contains implementations of parts of the compiler driver.
13
+ // This file contains implementations of parts of the compiler driver. test.
14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
@@ -72,7 +72,7 @@ Driver::Driver(StringRef DriverExecutable,
72
72
: Opts(createSwiftOptTable()), Diags(Diags),
73
73
Name(Name), DriverExecutable(DriverExecutable),
74
74
DefaultTargetTriple(llvm::sys::getDefaultTargetTriple()) {
75
-
75
+
76
76
// The driver kind must be parsed prior to parsing arguments, since that
77
77
// affects how arguments are parsed.
78
78
parseDriverKind (Args.slice (1 ));
@@ -908,7 +908,7 @@ Driver::buildCompilation(const ToolChain &TC,
908
908
translateInputAndPathArgs (*ArgList, workingDirectory));
909
909
910
910
validateArgs (Diags, *TranslatedArgList, TC.getTriple ());
911
-
911
+
912
912
// Perform toolchain specific args validation.
913
913
TC.validateArguments (Diags, *TranslatedArgList, DefaultTargetTriple);
914
914
@@ -1003,7 +1003,7 @@ Driver::buildCompilation(const ToolChain &TC,
1003
1003
llvm_unreachable (" Unknown OutputLevel argument!" );
1004
1004
}
1005
1005
1006
-
1006
+
1007
1007
// About to move argument list, so capture some flags that will be needed
1008
1008
// later.
1009
1009
const bool DriverPrintActions =
@@ -1499,7 +1499,7 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
1499
1499
if (Args.hasArg (options::OPT_static))
1500
1500
Diags.diagnose (SourceLoc (),
1501
1501
diag::error_static_emit_executable_disallowed);
1502
-
1502
+
1503
1503
OI.LinkAction = LinkKind::Executable;
1504
1504
OI.CompilerOutputType = CompilerOutputType;
1505
1505
break ;
@@ -2530,14 +2530,14 @@ static StringRef baseNameForImage(const JobAction *JA, const OutputInfo &OI,
2530
2530
StringRef BaseInput, StringRef BaseName) {
2531
2531
if (JA->size () == 1 && OI.ModuleNameIsFallback && BaseInput != " -" )
2532
2532
return llvm::sys::path::stem (BaseInput);
2533
-
2533
+
2534
2534
if (isa<StaticLinkJobAction>(JA)) {
2535
2535
Buffer = " lib" ;
2536
2536
Buffer.append (BaseName);
2537
2537
Buffer.append (Triple.isOSWindows () ? " .lib" : " .a" );
2538
2538
return Buffer.str ();
2539
2539
}
2540
-
2540
+
2541
2541
auto link = dyn_cast<DynamicLinkJobAction>(JA);
2542
2542
if (!link)
2543
2543
return BaseName;
@@ -2993,7 +2993,7 @@ Job *Driver::buildJobsForAction(Compilation &C, const JobAction *JA,
2993
2993
2994
2994
// 4. Construct a Job which produces the right CommandOutput.
2995
2995
std::unique_ptr<Job> ownedJob = TC.constructJob (*JA, C, std::move (InputJobs),
2996
- InputActions,
2996
+ InputActions,
2997
2997
std::move (Output), OI);
2998
2998
Job *J = C.addJob (std::move (ownedJob));
2999
2999
@@ -3557,7 +3557,7 @@ void Driver::printHelp(bool ShowHidden) const {
3557
3557
IncludedFlagsBitmask, ExcludedFlagsBitmask,
3558
3558
/* ShowAllAliases*/ false );
3559
3559
3560
- // These strings match the descriptions found in the corresponding swiftpm
3560
+ // These strings match the descriptions found in the corresponding swiftpm
3561
3561
// help pages
3562
3562
if (driverKind == DriverKind::Interactive) {
3563
3563
llvm::outs () << " \n SEE ALSO - PACKAGE MANAGER COMMANDS: \n "
@@ -3566,7 +3566,7 @@ void Driver::printHelp(bool ShowHidden) const {
3566
3566
" \t\" swift run\" Build and run an executable product \n "
3567
3567
" \t\" swift test\" Build and run tests \n " ;
3568
3568
} else {
3569
- llvm::outs () << " \n SEE ALSO: swift build, swift run, swift package, "
3569
+ llvm::outs () << " \n SEE ALSO: swift build, swift run, swift package, "
3570
3570
" swift test \n " ;
3571
3571
}
3572
3572
0 commit comments