summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-16 19:09:19 +0000
committerZachary Turner <zturner@google.com>2016-09-16 19:09:19 +0000
commite04c274e3576616b54682858f2f5611ef444087b (patch)
tree4f92846612c41ec4706a7f0db23b24c2ebd4394e
parent7b2e5a36e40eca504905aad3e36ba2c07e6e8ac0 (diff)
downloadbcm5719-llvm-e04c274e3576616b54682858f2f5611ef444087b.tar.gz
bcm5719-llvm-e04c274e3576616b54682858f2f5611ef444087b.zip
Set the correct triple when creating an ArchSpec for Windows.
Patch by Walter Erquinigo Differential Revision: https://reviews.llvm.org/D24283 llvm-svn: 281765
-rw-r--r--lldb/source/Core/ArchSpec.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Core/ArchSpec.cpp b/lldb/source/Core/ArchSpec.cpp
index 07190149bd7..4959d6cbc9c 100644
--- a/lldb/source/Core/ArchSpec.cpp
+++ b/lldb/source/Core/ArchSpec.cpp
@@ -1030,6 +1030,9 @@ bool ArchSpec::SetArchitecture(ArchitectureType arch_type, uint32_t cpu,
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);
OpenPOWER on IntegriCloud