diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2019-08-21 23:57:57 +0000 |
---|---|---|
committer | Cyndy Ishida <cyndy_ishida@apple.com> | 2019-08-21 23:57:57 +0000 |
commit | 9443d0e2c09b5d6914b5aa843b1ba8a9df594215 (patch) | |
tree | 9010193686dd660137dd6ea2e45f70c88f1dbb37 /llvm/lib/Object/TapiFile.cpp | |
parent | 894abb46f891cba2e0ef581650f27f512a7824b4 (diff) | |
download | bcm5719-llvm-9443d0e2c09b5d6914b5aa843b1ba8a9df594215.tar.gz bcm5719-llvm-9443d0e2c09b5d6914b5aa843b1ba8a9df594215.zip |
[Object] FIX: update PlatformKind name in TapiFile
Buildbots that use GCC failed to compile because overwritten
namespace with variable name
llvm-svn: 369602
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 be7d762ad1b..4d9fe7d9e8a 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 PlatformKind = interface.getPlatform(); + auto Platform = interface.getPlatform(); switch (Symbol->getKind()) { case SymbolKind::GlobalSymbol: Symbols.emplace_back(StringRef(), Symbol->getName(), getFlags(Symbol)); break; case SymbolKind::ObjectiveCClass: - if (PlatformKind == PlatformKind::macOS && Arch == AK_i386) { + if (Platform == PlatformKind::macOS && Arch == AK_i386) { Symbols.emplace_back(ObjC1ClassNamePrefix, Symbol->getName(), getFlags(Symbol)); } else { |