981 const llvm::Triple &lhs_triple =
GetTriple();
982 const llvm::Triple &rhs_triple = rhs.
GetTriple();
984 const llvm::Triple::VendorType lhs_triple_vendor = lhs_triple.getVendor();
985 const llvm::Triple::VendorType rhs_triple_vendor = rhs_triple.getVendor();
987 const llvm::Triple::OSType lhs_triple_os = lhs_triple.getOS();
988 const llvm::Triple::OSType rhs_triple_os = rhs_triple.getOS();
990 bool both_windows = lhs_triple.isOSWindows() && rhs_triple.isOSWindows();
994 if ((lhs_triple_vendor != rhs_triple_vendor) &&
1000 if (rhs_vendor_specified && lhs_vendor_specified)
1004 if (lhs_triple_vendor != llvm::Triple::UnknownVendor &&
1005 rhs_triple_vendor != llvm::Triple::UnknownVendor)
1009 const llvm::Triple::EnvironmentType lhs_triple_env =
1010 lhs_triple.getEnvironment();
1011 const llvm::Triple::EnvironmentType rhs_triple_env =
1012 rhs_triple.getEnvironment();
1016 if ((lhs_triple_os == llvm::Triple::IOS &&
1017 lhs_triple_env == llvm::Triple::MacABI &&
1018 rhs_triple_os == llvm::Triple::MacOSX) ||
1019 (lhs_triple_os == llvm::Triple::MacOSX &&
1020 rhs_triple_os == llvm::Triple::IOS &&
1021 rhs_triple_env == llvm::Triple::MacABI))
1024 if ((lhs_triple_os == llvm::Triple::DriverKit &&
1025 rhs_triple_os == llvm::Triple::MacOSX) ||
1026 (lhs_triple_os == llvm::Triple::MacOSX &&
1027 rhs_triple_os == llvm::Triple::DriverKit))
1032 if (lhs_triple_os == llvm::Triple::IOS &&
1033 rhs_triple_os == llvm::Triple::IOS &&
1034 (lhs_triple_env == llvm::Triple::MacABI ||
1035 rhs_triple_env == llvm::Triple::MacABI) &&
1036 lhs_triple_env != rhs_triple_env)
1039 if (lhs_triple_os != rhs_triple_os) {
1043 if (lhs_os_specified && rhs_os_specified)
1048 ((!lhs_os_specified && !lhs_triple.hasEnvironment()) ||
1049 (!rhs_os_specified && !rhs_triple.hasEnvironment())))