Upstreaming the BridgeOS device support and the

LC_BUILD_VERSION load command handling - this
commit is a combination of patches by Adrian
Prantl and myself.  llvm::Triple::BridgeOS 
isn't defined yet, so all references to that
are currently commented out.  

Also update Xcode project file to build the 
NativePDB etc plugins.

<rdar://problem/43353615> 

llvm-svn: 344209
This commit is contained in:
Jason Molenda
2018-10-11 00:28:35 +00:00
parent 51fbb2e70a
commit 32762fd29d
19 changed files with 714 additions and 35 deletions

View File

@@ -947,13 +947,13 @@ bool ArchSpec::SetArchitecture(ArchitectureType arch_type, uint32_t cpu,
m_triple.setVendor(llvm::Triple::Apple);
// Don't set the OS. It could be simulator, macosx, ios, watchos,
// tvos. We could get close with the cpu type - but we can't get it
// right all of the time. Better to leave this unset so other
// sections of code will set it when they have more information.
// NB: don't call m_triple.setOS (llvm::Triple::UnknownOS). That sets
// the OSName to
// "unknown" and the ArchSpec::TripleVendorWasSpecified() method says
// that any OSName setting means it was specified.
// tvos, bridgeos. We could get close with the cpu type - but we
// can't get it right all of the time. Better to leave this unset
// so other sections of code will set it when they have more
// information. NB: don't call m_triple.setOS (llvm::Triple::UnknownOS).
// That sets the OSName to "unknown" and the
// ArchSpec::TripleVendorWasSpecified() method says that any OSName
// setting means it was specified.
} else if (arch_type == eArchTypeELF) {
switch (os) {
case llvm::ELF::ELFOSABI_AIX: