Leave OS type and vendor as unspecified unknowns.
authorOleksiy Vyalov <ovyalov@google.com>
Fri, 29 May 2015 22:45:47 +0000 (22:45 +0000)
committerOleksiy Vyalov <ovyalov@google.com>
Fri, 29 May 2015 22:45:47 +0000 (22:45 +0000)
http://reviews.llvm.org/D10080

llvm-svn: 238623

lldb/source/Core/ArchSpec.cpp

index 6c02558..0683d66 100644 (file)
@@ -861,7 +861,6 @@ ArchSpec::SetArchitecture (ArchitectureType arch_type, uint32_t cpu, uint32_t su
                 if (arch_type == eArchTypeMachO)
                 {
                     m_triple.setVendor (llvm::Triple::Apple);
-
                     switch (core_def->machine)
                     {
                         case llvm::Triple::aarch64:
@@ -886,11 +885,6 @@ ArchSpec::SetArchitecture (ArchitectureType arch_type, uint32_t cpu, uint32_t su
                             break;
                     }
                 }
-                else
-                {
-                    m_triple.setVendor (llvm::Triple::UnknownVendor);
-                    m_triple.setOS (llvm::Triple::UnknownOS);
-                }
                 // Fall back onto setting the machine type if the arch by name failed...
                 if (m_triple.getArch () == llvm::Triple::UnknownArch)
                     m_triple.setArch (core_def->machine);