mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Rework -emit-supported-features mode into -emit-supported-arguments
The "featues" part was never actually implemented and Swift Driver is replying on information about arguments, so instead of removing this mode, let's scope it down to "arguments" to be deprecated in the future.
This commit is contained in:
@@ -1131,7 +1131,7 @@ static void printSingleFrontendOpt(llvm::opt::OptTable &table, options::ID id,
|
||||
}
|
||||
}
|
||||
|
||||
static bool printSwiftFeature(CompilerInstance &instance) {
|
||||
static bool printSwiftArguments(CompilerInstance &instance) {
|
||||
ASTContext &context = instance.getASTContext();
|
||||
const CompilerInvocation &invocation = instance.getInvocation();
|
||||
const FrontendOptions &opts = invocation.getFrontendOptions();
|
||||
@@ -1227,8 +1227,8 @@ static bool performAction(CompilerInstance &Instance,
|
||||
return Instance.getASTContext().hadError();
|
||||
case FrontendOptions::ActionType::PrintVersion:
|
||||
return printSwiftVersion(Instance.getInvocation());
|
||||
case FrontendOptions::ActionType::PrintFeature:
|
||||
return printSwiftFeature(Instance);
|
||||
case FrontendOptions::ActionType::PrintArguments:
|
||||
return printSwiftArguments(Instance);
|
||||
case FrontendOptions::ActionType::REPL:
|
||||
llvm::report_fatal_error("Compiler-internal integrated REPL has been "
|
||||
"removed; use the LLDB-enhanced REPL instead.");
|
||||
|
||||
Reference in New Issue
Block a user