projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2e5a3
)
Set the correct triple when creating an ArchSpec for Windows.
author
Zachary Turner
<zturner@google.com>
Fri, 16 Sep 2016 19:09:19 +0000
(19:09 +0000)
committer
Zachary Turner
<zturner@google.com>
Fri, 16 Sep 2016 19:09:19 +0000
(19:09 +0000)
Patch by Walter Erquinigo
Differential Revision: https://reviews.llvm.org/D24283
llvm-svn: 281765
lldb/source/Core/ArchSpec.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/ArchSpec.cpp
b/lldb/source/Core/ArchSpec.cpp
index 07190149bd70a6ebb2dd1e2178be9e8eca43e33a..4959d6cbc9cf7ff2113e86cfbc43ebc3f7be9271 100644
(file)
--- 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);