965 const llvm::Triple &lhs_triple =
GetTriple();
966 const llvm::Triple &rhs_triple = rhs.
GetTriple();
968 const llvm::Triple::VendorType lhs_triple_vendor = lhs_triple.getVendor();
969 const llvm::Triple::VendorType rhs_triple_vendor = rhs_triple.getVendor();
971 const llvm::Triple::OSType lhs_triple_os = lhs_triple.getOS();
972 const llvm::Triple::OSType rhs_triple_os = rhs_triple.getOS();
974 bool both_windows = lhs_triple.isOSWindows() && rhs_triple.isOSWindows();
978 if ((lhs_triple_vendor != rhs_triple_vendor) &&
984 if (rhs_vendor_specified && lhs_vendor_specified)
988 if (lhs_triple_vendor != llvm::Triple::UnknownVendor &&
989 rhs_triple_vendor != llvm::Triple::UnknownVendor)
993 const llvm::Triple::EnvironmentType lhs_triple_env =
994 lhs_triple.getEnvironment();
995 const llvm::Triple::EnvironmentType rhs_triple_env =
996 rhs_triple.getEnvironment();
1000 if ((lhs_triple_os == llvm::Triple::IOS &&
1001 lhs_triple_env == llvm::Triple::MacABI &&
1002 rhs_triple_os == llvm::Triple::MacOSX) ||
1003 (lhs_triple_os == llvm::Triple::MacOSX &&
1004 rhs_triple_os == llvm::Triple::IOS &&
1005 rhs_triple_env == llvm::Triple::MacABI))
1008 if ((lhs_triple_os == llvm::Triple::DriverKit &&
1009 rhs_triple_os == llvm::Triple::MacOSX) ||
1010 (lhs_triple_os == llvm::Triple::MacOSX &&
1011 rhs_triple_os == llvm::Triple::DriverKit))
1016 if (lhs_triple_os == llvm::Triple::IOS &&
1017 rhs_triple_os == llvm::Triple::IOS &&
1018 (lhs_triple_env == llvm::Triple::MacABI ||
1019 rhs_triple_env == llvm::Triple::MacABI) &&
1020 lhs_triple_env != rhs_triple_env)
1023 if (lhs_triple_os != rhs_triple_os) {
1027 if (lhs_os_specified && rhs_os_specified)
1032 ((!lhs_os_specified && !lhs_triple.hasEnvironment()) ||
1033 (!rhs_os_specified && !rhs_triple.hasEnvironment())))