Skip to content

Commit e87f237

Browse files
authored
Merge pull request #37397 from jirid/SR-14453-remove-enable-swiftcall
2 parents 3823966 + d4e5014 commit e87f237

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
@@ -1575,8 +1575,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
15751575
Opts.UseTypeLayoutValueHandling = false;
15761576
}
15771577

1578-
Opts.UseSwiftCall = Args.hasArg(OPT_enable_swiftcall);
1579-
15801578
// This is set to true by default.
15811579
Opts.UseIncrementalLLVMCodeGen &=
15821580
!Args.hasArg(OPT_disable_incremental_llvm_codegeneration);

0 commit comments

Comments
 (0)