================ @@ -180,35 +170,14 @@ bool InitHeaderSearch::AddUnmappedPath(const Twine &Path, IncludeDirGroup Group, return false; } -void InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(StringRef Base, - StringRef Arch, - StringRef Version) { - AddPath(Base + "/" + Arch + "/" + Version + "/include/c++", - CXXSystem, false); - AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch, - CXXSystem, false); - AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward", - CXXSystem, false); -} - void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, const HeaderSearchOptions &HSOpts) { if (!ShouldAddDefaultIncludePaths(triple)) llvm_unreachable("Include management is handled in the driver."); - llvm::Triple::OSType os = triple.getOS(); - if (HSOpts.UseStandardSystemIncludes) { - switch (os) { - case llvm::Triple::Win32: - if (triple.getEnvironment() != llvm::Triple::Cygnus) - break; - [[fallthrough]]; - default: - // FIXME: temporary hack: hard-coded paths. - AddPath("/usr/local/include", System, false); - break; - } + // FIXME: temporary hack: hard-coded paths. ---------------- jeremyd2019 wrote:
It appears to me that this code is some legacy cruft left behind after all other targets were refactored to driver ToolChains, and all that was left was some Cygwin hackery that I now removed. https://github.com/llvm/llvm-project/pull/135691 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits