summaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/InterfaceFile.cpp
diff options
context:
space:
mode:
authorCyndy Ishida <cyndy_ishida@apple.com>2024-11-19 08:01:05 -0800
committerGitHub <noreply@github.com>2024-11-19 08:01:05 -0800
commit03506bc0a99fd53d0f4e3d0bd77eb2f7bad96102 (patch)
tree9b704bd71c733dff6f01939809a1150464ecd3a1 /llvm/lib/TextAPI/InterfaceFile.cpp
parentb3995aa338a2837626d31ae8fffc340d95b888ca (diff)
[TextAPI] Add missing attribute to remove/merge/extract operations (#116729)
Diffstat (limited to 'llvm/lib/TextAPI/InterfaceFile.cpp')
-rw-r--r--llvm/lib/TextAPI/InterfaceFile.cpp5
1 files changed, 5 insertions, 0 deletions
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<TextAPIError>(TextAPIErrorCode::NoSuchArchitecture);
}
+ // FIXME: Figure out how to keep these attributes in sync when new ones are
+ // added.
std::unique_ptr<InterfaceFile> 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);