From 03506bc0a99fd53d0f4e3d0bd77eb2f7bad96102 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Tue, 19 Nov 2024 08:01:05 -0800 Subject: [TextAPI] Add missing attribute to remove/merge/extract operations (#116729) --- llvm/lib/TextAPI/InterfaceFile.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp') diff --git a/llvm/lib/TextAPI/InterfaceFile.cpp b/llvm/lib/TextAPI/InterfaceFile.cpp index efbf33b74776..ce2feb65c9ec 100644 --- a/llvm/lib/TextAPI/InterfaceFile.cpp +++ b/llvm/lib/TextAPI/InterfaceFile.cpp @@ -172,6 +172,7 @@ InterfaceFile::merge(const InterfaceFile *O) const { IF->setTwoLevelNamespace(isTwoLevelNamespace()); IF->setApplicationExtensionSafe(isApplicationExtensionSafe()); + IF->setOSLibNotForSharedCache(isOSLibNotForSharedCache()); for (const auto &It : umbrellas()) { if (!It.second.empty()) @@ -238,6 +239,8 @@ InterfaceFile::remove(Architecture Arch) const { return make_error(TextAPIErrorCode::NoSuchArchitecture); } + // FIXME: Figure out how to keep these attributes in sync when new ones are + // added. std::unique_ptr IF(new InterfaceFile()); IF->setFileType(getFileType()); IF->setPath(getPath()); @@ -248,6 +251,7 @@ InterfaceFile::remove(Architecture Arch) const { IF->setSwiftABIVersion(getSwiftABIVersion()); IF->setTwoLevelNamespace(isTwoLevelNamespace()); IF->setApplicationExtensionSafe(isApplicationExtensionSafe()); + IF->setOSLibNotForSharedCache(isOSLibNotForSharedCache()); for (const auto &It : umbrellas()) if (It.first.Arch != Arch) IF->addParentUmbrella(It.first, It.second); @@ -316,6 +320,7 @@ InterfaceFile::extract(Architecture Arch) const { IF->setSwiftABIVersion(getSwiftABIVersion()); IF->setTwoLevelNamespace(isTwoLevelNamespace()); IF->setApplicationExtensionSafe(isApplicationExtensionSafe()); + IF->setOSLibNotForSharedCache(isOSLibNotForSharedCache()); for (const auto &It : umbrellas()) if (It.first.Arch == Arch) IF->addParentUmbrella(It.first, It.second); -- cgit v1.2.3