974 const llvm::Triple &lhs_triple =
GetTriple();
975 const llvm::Triple &rhs_triple = rhs.
GetTriple();
977 const llvm::Triple::VendorType lhs_triple_vendor = lhs_triple.getVendor();
978 const llvm::Triple::VendorType rhs_triple_vendor = rhs_triple.getVendor();
980 const llvm::Triple::OSType lhs_triple_os = lhs_triple.getOS();
981 const llvm::Triple::OSType rhs_triple_os = rhs_triple.getOS();
983 bool both_windows = lhs_triple.isOSWindows() && rhs_triple.isOSWindows();
987 if ((lhs_triple_vendor != rhs_triple_vendor) &&
993 if (rhs_vendor_specified && lhs_vendor_specified)
997 if (lhs_triple_vendor != llvm::Triple::UnknownVendor &&
998 rhs_triple_vendor != llvm::Triple::UnknownVendor)
1002 const llvm::Triple::EnvironmentType lhs_triple_env =
1003 lhs_triple.getEnvironment();
1004 const llvm::Triple::EnvironmentType rhs_triple_env =
1005 rhs_triple.getEnvironment();
1009 if ((lhs_triple_os == llvm::Triple::IOS &&
1010 lhs_triple_env == llvm::Triple::MacABI &&
1011 rhs_triple_os == llvm::Triple::MacOSX) ||
1012 (lhs_triple_os == llvm::Triple::MacOSX &&
1013 rhs_triple_os == llvm::Triple::IOS &&
1014 rhs_triple_env == llvm::Triple::MacABI))
1017 if ((lhs_triple_os == llvm::Triple::DriverKit &&
1018 rhs_triple_os == llvm::Triple::MacOSX) ||
1019 (lhs_triple_os == llvm::Triple::MacOSX &&
1020 rhs_triple_os == llvm::Triple::DriverKit))
1025 if (lhs_triple_os == llvm::Triple::IOS &&
1026 rhs_triple_os == llvm::Triple::IOS &&
1027 (lhs_triple_env == llvm::Triple::MacABI ||
1028 rhs_triple_env == llvm::Triple::MacABI) &&
1029 lhs_triple_env != rhs_triple_env)
1032 if (lhs_triple_os != rhs_triple_os) {
1036 if (lhs_os_specified && rhs_os_specified)
1041 ((!lhs_os_specified && !lhs_triple.hasEnvironment()) ||
1042 (!rhs_os_specified && !rhs_triple.hasEnvironment())))