r354723 - Remove OpenBSD case for old system libstdc++ header path as OpenBSD

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 22 23:21:20 PST 2019


Author: brad
Date: Fri Feb 22 23:21:19 2019
New Revision: 354723

URL: http://llvm.org/viewvc/llvm-project?rev=354723&view=rev
Log:
Remove OpenBSD case for old system libstdc++ header path as OpenBSD
has switched to libc++.

Modified:
    cfe/trunk/lib/Frontend/InitHeaderSearch.cpp

Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=354723&r1=354722&r2=354723&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
+++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Fri Feb 22 23:21:19 2019
@@ -432,14 +432,6 @@ void InitHeaderSearch::AddDefaultCPlusPl
   case llvm::Triple::DragonFly:
     AddPath("/usr/include/c++/5.0", CXXSystem, false);
     break;
-  case llvm::Triple::OpenBSD: {
-    std::string t = triple.getTriple();
-    if (t.substr(0, 6) == "x86_64")
-      t.replace(0, 6, "amd64");
-    AddGnuCPlusPlusIncludePaths("/usr/include/g++",
-                                t, "", "", triple);
-    break;
-  }
   case llvm::Triple::Minix:
     AddGnuCPlusPlusIncludePaths("/usr/gnu/include/c++/4.4.3",
                                 "", "", "", triple);




More information about the cfe-commits mailing list