972 const llvm::Triple &lhs_triple =
GetTriple();
973 const llvm::Triple &rhs_triple = rhs.
GetTriple();
975 const llvm::Triple::VendorType lhs_triple_vendor = lhs_triple.getVendor();
976 const llvm::Triple::VendorType rhs_triple_vendor = rhs_triple.getVendor();
978 const llvm::Triple::OSType lhs_triple_os = lhs_triple.getOS();
979 const llvm::Triple::OSType rhs_triple_os = rhs_triple.getOS();
981 bool both_windows = lhs_triple.isOSWindows() && rhs_triple.isOSWindows();
985 if ((lhs_triple_vendor != rhs_triple_vendor) &&
991 if (rhs_vendor_specified && lhs_vendor_specified)
995 if (lhs_triple_vendor != llvm::Triple::UnknownVendor &&
996 rhs_triple_vendor != llvm::Triple::UnknownVendor)
1000 const llvm::Triple::EnvironmentType lhs_triple_env =
1001 lhs_triple.getEnvironment();
1002 const llvm::Triple::EnvironmentType rhs_triple_env =
1003 rhs_triple.getEnvironment();
1007 if ((lhs_triple_os == llvm::Triple::IOS &&
1008 lhs_triple_env == llvm::Triple::MacABI &&
1009 rhs_triple_os == llvm::Triple::MacOSX) ||
1010 (lhs_triple_os == llvm::Triple::MacOSX &&
1011 rhs_triple_os == llvm::Triple::IOS &&
1012 rhs_triple_env == llvm::Triple::MacABI))
1015 if ((lhs_triple_os == llvm::Triple::DriverKit &&
1016 rhs_triple_os == llvm::Triple::MacOSX) ||
1017 (lhs_triple_os == llvm::Triple::MacOSX &&
1018 rhs_triple_os == llvm::Triple::DriverKit))
1023 if (lhs_triple_os == llvm::Triple::IOS &&
1024 rhs_triple_os == llvm::Triple::IOS &&
1025 (lhs_triple_env == llvm::Triple::MacABI ||
1026 rhs_triple_env == llvm::Triple::MacABI) &&
1027 lhs_triple_env != rhs_triple_env)
1030 if (lhs_triple_os != rhs_triple_os) {
1034 if (lhs_os_specified && rhs_os_specified)
1039 ((!lhs_os_specified && !lhs_triple.hasEnvironment()) ||
1040 (!rhs_os_specified && !rhs_triple.hasEnvironment())))