[Object] FIX: update PlatformKind name in TapiFile

Buildbots that use GCC failed to compile because overwritten
namespace with variable name

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Cyndy Ishida
2019-08-21 23:57:57 +00:00
parent 0b2186f2f9
commit dec6da099e
+2 -2
View File
@@ -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 {