[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
Tue Aug 29 20:06:28 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd267990e8c53: [Driver] move ELFIAMCU / RTEMS header search path management to the driver (authored by brad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158132/new/
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
@@ -231,8 +231,6 @@
if (HSOpts.UseStandardSystemIncludes) {
switch (os) {
- case llvm::Triple::ELFIAMCU:
- break;
case llvm::Triple::Win32:
if (triple.getEnvironment() != llvm::Triple::Cygnus)
break;
@@ -270,8 +268,6 @@
}
switch (os) {
- case llvm::Triple::RTEMS:
- break;
case llvm::Triple::Win32:
switch (triple.getEnvironment()) {
default: llvm_unreachable("Include management is handled in the driver.");
@@ -286,14 +282,7 @@
break;
}
- switch (os) {
- case llvm::Triple::RTEMS:
- case llvm::Triple::ELFIAMCU:
- break;
- default:
- AddPath("/usr/include", ExternCSystem, false);
- break;
- }
+ AddPath("/usr/include", ExternCSystem, false);
}
void InitHeaderSearch::AddDefaultCPlusPlusIncludePaths(
@@ -330,6 +319,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::Fuchsia:
@@ -342,6 +332,7 @@
case llvm::Triple::OpenBSD:
case llvm::Triple::PS4:
case llvm::Triple::PS5:
+ case llvm::Triple::RTEMS:
case llvm::Triple::Solaris:
case llvm::Triple::WASI:
case llvm::Triple::ZOS:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158132.554555.patch
Type: text/x-patch
Size: 1443 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230830/ae33eaca/attachment.bin>
More information about the cfe-commits
mailing list