[clang] 86c31c1 - [APINotes] Remove unused OS-availability feature
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 03:59:15 PDT 2023
Author: Egor Zhdan
Date: 2023-09-04T11:59:11+01:00
New Revision: 86c31c1406cfff001c0a52ebf3a31185635d6ad6
URL: https://github.com/llvm/llvm-project/commit/86c31c1406cfff001c0a52ebf3a31185635d6ad6
DIFF: https://github.com/llvm/llvm-project/commit/86c31c1406cfff001c0a52ebf3a31185635d6ad6.diff
LOG: [APINotes] Remove unused OS-availability feature
iOS/OSX-specific availability is a legacy of compiled API Notes which
are not supported and were removed from Apple Clang in 2019 (see
https://github.com/apple/llvm-project/commit/30fc70f349277a42e02550779b464b92a2f06c1c).
Added:
Modified:
clang/lib/APINotes/APINotesYAMLCompiler.cpp
Removed:
################################################################################
diff --git a/clang/lib/APINotes/APINotesYAMLCompiler.cpp b/clang/lib/APINotes/APINotesYAMLCompiler.cpp
index 7cfdefc2e3de828..e430956e28d0808 100644
--- a/clang/lib/APINotes/APINotesYAMLCompiler.cpp
+++ b/clang/lib/APINotes/APINotesYAMLCompiler.cpp
@@ -28,8 +28,6 @@ using namespace api_notes;
namespace {
enum class APIAvailability {
Available = 0,
- OSX,
- IOS,
None,
NonSwift,
};
@@ -39,8 +37,6 @@ namespace llvm {
namespace yaml {
template <> struct ScalarEnumerationTraits<APIAvailability> {
static void enumeration(IO &IO, APIAvailability &AA) {
- IO.enumCase(AA, "OSX", APIAvailability::OSX);
- IO.enumCase(AA, "iOS", APIAvailability::IOS);
IO.enumCase(AA, "none", APIAvailability::None);
IO.enumCase(AA, "nonswift", APIAvailability::NonSwift);
IO.enumCase(AA, "available", APIAvailability::Available);
More information about the cfe-commits
mailing list