Skip to content

Commit d4e5014

Browse files
committed
[SR-14453] Removed unused option enable_swiftcall.
1 parent d9e5895 commit d4e5014

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

include/swift/AST/IRGenOptions.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,6 @@ class IRGenOptions {
323323
/// measurements on a non-clean build directory.
324324
unsigned UseIncrementalLLVMCodeGen : 1;
325325

326-
/// Enable use of the swiftcall calling convention.
327-
unsigned UseSwiftCall : 1;
328-
329326
/// Enable the use of type layouts for value witness functions and use
330327
/// vw functions instead of outlined copy/destroy functions.
331328
unsigned UseTypeLayoutValueHandling : 1;
@@ -396,7 +393,7 @@ class IRGenOptions {
396393
ForcePublicLinkage(false), LazyInitializeClassMetadata(false),
397394
LazyInitializeProtocolConformances(false), DisableLegacyTypeInfo(false),
398395
PrespecializeGenericMetadata(false), UseIncrementalLLVMCodeGen(true),
399-
UseSwiftCall(false), UseTypeLayoutValueHandling(true),
396+
UseTypeLayoutValueHandling(true),
400397
GenerateProfile(false), EnableDynamicReplacementChaining(false),
401398
DisableRoundTripDebugTypes(false), DisableDebuggerShadowCopies(false),
402399
DisableConcreteTypeMetadataMangledNameAccessors(false), CmdArgs(),

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ def diagnostic_documentation_path
126126
: Separate<["-"], "diagnostic-documentation-path">, MetaVarName<"<path>">,
127127
HelpText<"Path to diagnostic documentation resources">;
128128

129-
def enable_swiftcall : Flag<["-"], "enable-swiftcall">,
130-
HelpText<"Enable the use of LLVM swiftcall support">;
131-
132129
def enable_testable_attr_requires_testable_module :
133130
Flag<["-"], "enable-testable-attr-requires-testable-module">,
134131
HelpText<"Enable checking of @testable">;

lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,8 +1568,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
15681568
Opts.UseTypeLayoutValueHandling = false;
15691569
}
15701570

1571-
Opts.UseSwiftCall = Args.hasArg(OPT_enable_swiftcall);
1572-
15731571
// This is set to true by default.
15741572
Opts.UseIncrementalLLVMCodeGen &=
15751573
!Args.hasArg(OPT_disable_incremental_llvm_codegeneration);

0 commit comments

Comments
 (0)