Skip to content

Commit 58d4868

Browse files
authored
Revert "TBDGen: pass-down target variant when generating textual interface stubs"
1 parent c3192a0 commit 58d4868

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/TBDGen/TBDGen.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,11 +978,7 @@ GenerateTBDRequest::evaluate(Evaluator &evaluator,
978978

979979
llvm::MachO::Target target(triple);
980980
file.addTarget(target);
981-
// Add target variant
982-
if (ctx.LangOpts.TargetVariant.hasValue()) {
983-
llvm::MachO::Target targetVar(*ctx.LangOpts.TargetVariant);
984-
file.addTarget(targetVar);
985-
}
981+
986982
StringSet symbols;
987983
auto *clang = static_cast<ClangImporter *>(ctx.getClangModuleLoader());
988984
TBDGenVisitor visitor(file, {target}, &symbols,

test/TBD/app-extension.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@
88

99
// EXTENSIONSAFE-NOT: not_app_extension_safe
1010
// NOTEXTENSIONSAFE: not_app_extension_safe
11-
12-
// RUN: %target-swift-frontend -target-variant x86_64-apple-ios13.0-macabi -typecheck %s -application-extension -emit-tbd -emit-tbd-path %t/target-variant.tbd
13-
// RUN: %FileCheck %s --check-prefix ZIPPERED < %t/target-variant.tbd
14-
15-
// ZIPPERED: platform: zippered

0 commit comments

Comments
 (0)