[Lldb-commits] [PATCH] D24283: [lldb] 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:17:53 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL281765: Set the correct triple when creating an ArchSpec for Windows. (authored by zturner).

Changed prior to commit:
  https://reviews.llvm.org/D24283?vs=71226&id=71686#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24283

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

Index: lldb/trunk/source/Core/ArchSpec.cpp
===================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp
+++ lldb/trunk/source/Core/ArchSpec.cpp
@@ -1030,6 +1030,9 @@
             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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24283.71686.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160916/ed2c9663/attachment.bin>


More information about the lldb-commits mailing list