diff options
| author | Michael Jones <michaelrj@google.com> | 2020-12-23 18:46:09 +0000 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2021-01-08 23:52:35 +0000 |
| commit | a0b65a7bcd6065688189b3d678c42ed6af9603db (patch) | |
| tree | 297d25827bcf2c7e27eaa0c209004cd6ac39d791 /libc/src/string/strrchr.cpp | |
| parent | daaaed6bb89044ac58a23f1bb1ccdd12342a5a58 (diff) | |
[libc] Switch to use a macro which does not insert a section for every libc function.
Summary:
The new macro also inserts the C alias for the C++ implementations
without needing an objcopy based post processing step. The CMake
rules have been updated to reflect this. More CMake cleanup can be
taken up in future rounds and appropriate TODOs have been added for them.
Reviewers: mcgrathr, sivachandra
Subscribers:
Diffstat (limited to 'libc/src/string/strrchr.cpp')
| -rw-r--r-- | libc/src/string/strrchr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/string/strrchr.cpp b/libc/src/string/strrchr.cpp index 374a802fbb9e..33a638bacd86 100644 --- a/libc/src/string/strrchr.cpp +++ b/libc/src/string/strrchr.cpp @@ -12,7 +12,7 @@ namespace __llvm_libc { -char *LLVM_LIBC_ENTRYPOINT(strrchr)(const char *src, int c) { +LLVM_LIBC_FUNCTION(char *, strrchr, (const char *src, int c)) { const char ch = c; char *last_occurrence = nullptr; do { |
