[Lldb-commits] [lldb] r281765 - Set the correct triple when creating an ArchSpec for Windows.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 16 12:09:19 PDT 2016


Author: zturner
Date: Fri Sep 16 14:09:19 2016
New Revision: 281765

URL: http://llvm.org/viewvc/llvm-project?rev=281765&view=rev
Log:
Set the correct triple when creating an ArchSpec for Windows.

Patch by Walter Erquinigo
Differential Revision: https://reviews.llvm.org/D24283

Modified:
    lldb/trunk/source/Core/ArchSpec.cpp

Modified: lldb/trunk/source/Core/ArchSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=281765&r1=281764&r2=281765&view=diff
==============================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp (original)
+++ lldb/trunk/source/Core/ArchSpec.cpp Fri Sep 16 14:09:19 2016
@@ -1030,6 +1030,9 @@ bool ArchSpec::SetArchitecture(Architect
             m_triple.setOS(llvm::Triple::OSType::Solaris);
             break;
           }
+        } else if (arch_type == eArchTypeCOFF && os == llvm::Triple::Win32) {
+          m_triple.setVendor(llvm::Triple::PC);
+          m_triple.setOS(llvm::Triple::Win32);
         } else {
           m_triple.setVendor(llvm::Triple::UnknownVendor);
           m_triple.setOS(llvm::Triple::UnknownOS);




More information about the lldb-commits mailing list