[all-commits] [llvm/llvm-project] 07793f: [libc] add strsignal and refactor message mapping
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Oct 7 11:12:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07793f95c45b8606a21e1bdc948cd6f3b0e6461f
https://github.com/llvm/llvm-project/commit/07793f95c45b8606a21e1bdc948cd6f3b0e6461f
Author: Michael Jones <michaelrj at google.com>
Date: 2022-10-07 (Fri, 07 Oct 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/posix.td
M libc/src/__support/CMakeLists.txt
A libc/src/__support/StringUtil/CMakeLists.txt
A libc/src/__support/StringUtil/error_to_string.cpp
A libc/src/__support/StringUtil/error_to_string.h
A libc/src/__support/StringUtil/message_mapper.h
A libc/src/__support/StringUtil/signal_to_string.cpp
A libc/src/__support/StringUtil/signal_to_string.h
R libc/src/__support/error_to_string.cpp
R libc/src/__support/error_to_string.h
M libc/src/string/CMakeLists.txt
M libc/src/string/strerror.cpp
M libc/src/string/strerror.h
M libc/src/string/strerror_r.cpp
A libc/src/string/strsignal.cpp
A libc/src/string/strsignal.h
M libc/test/src/string/CMakeLists.txt
A libc/test/src/string/strsignal_test.cpp
Log Message:
-----------
[libc] add strsignal and refactor message mapping
The logic for strsignal and strerror is very similar, so I've moved them
both to use a shared utility (MessageMapper) for the basic
functionality.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D135322
More information about the All-commits
mailing list