]> granicus.if.org Git - clang/commitdiff
Remove OpenBSD case for old system libstdc++ header path as OpenBSD
authorBrad Smith <brad@comstyle.com>
Sat, 23 Feb 2019 07:21:19 +0000 (07:21 +0000)
committerBrad Smith <brad@comstyle.com>
Sat, 23 Feb 2019 07:21:19 +0000 (07:21 +0000)
has switched to libc++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354723 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitHeaderSearch.cpp

index 6391d7a6ae3fd5773bb5a1b689d9875105b83cb4..d96fa81f73f693e6a9dc4caf5933adfc9d04567c 100644 (file)
@@ -432,14 +432,6 @@ void InitHeaderSearch::AddDefaultCPlusPlusIncludePaths(
   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);