diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2019-09-20 14:32:34 +0000 |
---|---|---|
committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2019-09-20 14:32:34 +0000 |
commit | 81669d5ead6fa555f13308771a6d4cd97f9a73c5 (patch) | |
tree | 7ab3adb03b615d52c00acec032b97e6d0d736e38 /llvm/lib/Object/TapiFile.cpp | |
parent | 084801bdc1a798f30d3ecc183009c74809e051c5 (diff) | |
download | bcm5719-llvm-81669d5ead6fa555f13308771a6d4cd97f9a73c5.tar.gz bcm5719-llvm-81669d5ead6fa555f13308771a6d4cd97f9a73c5.zip |
[TextAPI] Arch&Platform to Target
Summary:
This is a patch for updating TextAPI/Macho to read in targets as opposed to arch/platform.
This is because in previous versions tbd files only supported a single platform but that is no longer the case,
so, now its tracked by unique triples.
This precedes a seperate patch that will add the TBD-v4 format
Reviewers: ributzka, steven_wu, plotfi, compnerd, smeenai
Reviewed By: ributzka
Subscribers: mgorny, hiraditya, dexonsmith, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67527
llvm-svn: 372396
Diffstat (limited to 'llvm/lib/Object/TapiFile.cpp')
-rw-r--r-- | llvm/lib/Object/TapiFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/TapiFile.cpp b/llvm/lib/Object/TapiFile.cpp index 4d9fe7d9e8a..c409bd8e599 100644 --- a/llvm/lib/Object/TapiFile.cpp +++ b/llvm/lib/Object/TapiFile.cpp @@ -45,13 +45,13 @@ TapiFile::TapiFile(MemoryBufferRef Source, const InterfaceFile &interface, if (!Symbol->getArchitectures().has(Arch)) continue; - auto Platform = interface.getPlatform(); switch (Symbol->getKind()) { case SymbolKind::GlobalSymbol: Symbols.emplace_back(StringRef(), Symbol->getName(), getFlags(Symbol)); break; case SymbolKind::ObjectiveCClass: - if (Platform == PlatformKind::macOS && Arch == AK_i386) { + if (interface.getPlatforms().count(PlatformKind::macOS) && + Arch == AK_i386) { Symbols.emplace_back(ObjC1ClassNamePrefix, Symbol->getName(), getFlags(Symbol)); } else { |