Skip to content

Commit dce197a

Browse files
[libc][errno] remove mips+sparc specific errnos (#92798)
These are untested and unsupported platforms. The pattern used makes sense for platform specific error numbers, but these are platforms we do not support. Excise this code. Link: #91150
1 parent 51ba7a8 commit dce197a

File tree

6 files changed

+0
-72
lines changed

6 files changed

+0
-72
lines changed

libc/include/llvm-libc-macros/linux/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/mips)
2-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/sparc)
3-
41
add_header(
52
error_number_macros
63
HDR
74
error-number-macros.h
8-
DEPENDS
9-
.mips.error_number_macros
10-
.sparc.error_number_macros
115
)
126

137
add_header(

libc/include/llvm-libc-macros/linux/error-number-macros.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
#ifndef LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H
22
#define LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H
33

4-
#if defined(__mips__)
5-
#include "mips/error-number-macros.h"
6-
7-
#elif defined(__sparc__)
8-
#include "sparc/error-number-macros.h"
9-
10-
#else
114
#ifndef ECANCELED
125
#define ECANCELED 125
136
#endif // ECANCELED
@@ -27,6 +20,5 @@
2720
#ifndef EHWPOISON
2821
#define EHWPOISON 133
2922
#endif // EHWPOISON
30-
#endif
3123

3224
#endif // LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H

libc/include/llvm-libc-macros/linux/mips/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

libc/include/llvm-libc-macros/linux/mips/error-number-macros.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

libc/include/llvm-libc-macros/linux/sparc/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

libc/include/llvm-libc-macros/linux/sparc/error-number-macros.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)