Skip to content

Commit acfc4a9

Browse files
committed
Fixup for 3904fe8 (AST: Centralize ABI-related deployment target checks)
1 parent 0d400ca commit acfc4a9

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

lib/Basic/LangOptions.cpp

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -375,37 +375,3 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
375375

376376
return { false, false };
377377
}
378-
379-
bool LangOptions::doesTargetSupportObjCMetadataUpdateCallback() const {
380-
if (Target.getArchName() == "arm64e")
381-
return true;
382-
if (Target.isMacOSX())
383-
return !Target.isMacOSXVersionLT(10, 14, 4);
384-
if (Target.isiOS()) // also returns true on tvOS
385-
return !Target.isOSVersionLT(12, 2);
386-
if (Target.isWatchOS())
387-
return !Target.isOSVersionLT(5, 2);
388-
389-
// Don't assert if we're running on a non-Apple platform; we still
390-
// want to allow running tests that -enable-objc-interop.
391-
return false;
392-
}
393-
394-
bool LangOptions::doesTargetSupportObjCGetClassHook() const {
395-
return doesTargetSupportObjCMetadataUpdateCallback();
396-
}
397-
398-
bool LangOptions::doesTargetSupportObjCClassStubs() const {
399-
if (Target.getArchName() == "arm64e")
400-
return true;
401-
if (Target.isMacOSX())
402-
return !Target.isMacOSXVersionLT(10, 15);
403-
if (Target.isiOS()) // also returns true on tvOS
404-
return !Target.isOSVersionLT(13);
405-
if (Target.isWatchOS())
406-
return !Target.isOSVersionLT(6);
407-
408-
// Don't assert if we're running on a non-Apple platform; we still
409-
// want to allow running tests that -enable-objc-interop.
410-
return false;
411-
}

0 commit comments

Comments
 (0)