[all-commits] [llvm/llvm-project] 251749: [libc] Rearrange error and signal tables.
Siva Chandra via All-commits
all-commits at lists.llvm.org
Wed May 24 22:52:03 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 25174976e19b2ef916bb94f4613662646c95cd46
https://github.com/llvm/llvm-project/commit/25174976e19b2ef916bb94f4613662646c95cd46
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M libc/src/__support/StringUtil/CMakeLists.txt
M libc/src/__support/StringUtil/error_to_string.cpp
M libc/src/__support/StringUtil/message_mapper.h
A libc/src/__support/StringUtil/platform_errors.h
A libc/src/__support/StringUtil/platform_signals.h
M libc/src/__support/StringUtil/signal_to_string.cpp
M libc/src/__support/StringUtil/tables/CMakeLists.txt
R libc/src/__support/StringUtil/tables/error_table.h
R libc/src/__support/StringUtil/tables/linux/CMakeLists.txt
R libc/src/__support/StringUtil/tables/linux/error_table.h
R libc/src/__support/StringUtil/tables/linux/signal_table.h
A libc/src/__support/StringUtil/tables/linux_extension_errors.h
A libc/src/__support/StringUtil/tables/linux_extension_signals.h
A libc/src/__support/StringUtil/tables/linux_platform_errors.h
A libc/src/__support/StringUtil/tables/linux_platform_signals.h
A libc/src/__support/StringUtil/tables/minimal_platform_errors.h
A libc/src/__support/StringUtil/tables/minimal_platform_signals.h
R libc/src/__support/StringUtil/tables/posix_error_table.h
A libc/src/__support/StringUtil/tables/posix_errors.h
R libc/src/__support/StringUtil/tables/posix_signal_table.h
A libc/src/__support/StringUtil/tables/posix_signals.h
R libc/src/__support/StringUtil/tables/stdc_error_table.h
A libc/src/__support/StringUtil/tables/stdc_errors.h
R libc/src/__support/StringUtil/tables/stdc_signal_table.h
A libc/src/__support/StringUtil/tables/stdc_signals.h
Log Message:
-----------
[libc] Rearrange error and signal tables.
This is largely a cosmetic change done with a few goals:
1. Reduce the conditionals in picking the correct set of tables for the
platform.
2. Avoid exposing, for example Linux errors, when building for non-Linux
platforms. This also prevents build failures when Linux errors are not
defined on the target non-Linux platform.
3. Some "_table" suffixes have been removed to avoid repeated
occurance of "table" like "tables/linux_error_table.h".
Reviewed By: michaelrj
Differential Revision: https://reviews.llvm.org/D151367
More information about the All-commits
mailing list