mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user