[PATCH] D158132: [Driver] move ELFIAMCU / RTEMS header search path management to the driver

Brad Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 16:47:45 PDT 2023


brad created this revision.
brad added reviewers: mkuper, waltl.
brad added a project: clang.
Herald added a project: All.
brad requested review of this revision.

As has been done for other OS's. Move the header path management to the driver.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158132

Files:
  clang/lib/Lex/InitHeaderSearch.cpp


Index: clang/lib/Lex/InitHeaderSearch.cpp
===================================================================
--- clang/lib/Lex/InitHeaderSearch.cpp
+++ clang/lib/Lex/InitHeaderSearch.cpp
@@ -233,7 +233,6 @@
     switch (os) {
     case llvm::Triple::CloudABI:
     case llvm::Triple::NaCl:
-    case llvm::Triple::ELFIAMCU:
       break;
     case llvm::Triple::Win32:
       if (triple.getEnvironment() != llvm::Triple::Cygnus)
@@ -279,8 +278,6 @@
     AddPath(P, System, false);
     break;
   }
-  case llvm::Triple::RTEMS:
-    break;
   case llvm::Triple::Win32:
     switch (triple.getEnvironment()) {
     default: llvm_unreachable("Include management is handled in the driver.");
@@ -297,9 +294,7 @@
 
   switch (os) {
   case llvm::Triple::CloudABI:
-  case llvm::Triple::RTEMS:
   case llvm::Triple::NaCl:
-  case llvm::Triple::ELFIAMCU:
     break;
   default:
     AddPath("/usr/include", ExternCSystem, false);
@@ -345,6 +340,7 @@
     const llvm::Triple &triple) {
   switch (triple.getOS()) {
   case llvm::Triple::AIX:
+  case llvm::Triple::ELFIAMCU:
   case llvm::Triple::Emscripten:
   case llvm::Triple::FreeBSD:
   case llvm::Triple::NetBSD:
@@ -355,6 +351,7 @@
   case llvm::Triple::Haiku:
   case llvm::Triple::Hurd:
   case llvm::Triple::Linux:
+  case llvm::Triple::RTEMS:
   case llvm::Triple::Solaris:
   case llvm::Triple::WASI:
     return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158132.550929.patch
Type: text/x-patch
Size: 1376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230816/b918f0a1/attachment.bin>


More information about the cfe-commits mailing list