diff options
author | Alex Brachet <abrachet@google.com> | 2023-04-11 04:30:50 +0000 |
---|---|---|
committer | Alex Brachet <abrachet@google.com> | 2023-04-11 04:30:50 +0000 |
commit | 9c7a3705050d0a581d1ae2402f52712f138c3760 (patch) | |
tree | 8aa8db5730822fd52ee957f296f9b2b1a3e9a339 /libc/spec | |
parent | 0beeadf2035766a1b73bd2aae1df39585e586a5c (diff) | |
download | llvm-9c7a3705050d0a581d1ae2402f52712f138c3760.tar.gz |
Reland "[libc] Add {,r}index"
Differential Revision: https://reviews.llvm.org/D147464
Diffstat (limited to 'libc/spec')
-rw-r--r-- | libc/spec/bsd_ext.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/spec/bsd_ext.td b/libc/spec/bsd_ext.td index 3420c2098449..3829e57e9765 100644 --- a/libc/spec/bsd_ext.td +++ b/libc/spec/bsd_ext.td @@ -39,6 +39,16 @@ def BsdExtensions : StandardSpec<"BSDExtensions"> { RetValSpec<IntType>, [ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>] >, + FunctionSpec< + "index", + RetValSpec<CharPtr>, + [ArgSpec<ConstCharPtr>, ArgSpec<IntType>] + >, + FunctionSpec< + "rindex", + RetValSpec<CharPtr>, + [ArgSpec<ConstCharPtr>, ArgSpec<IntType>] + >, ] >; |