[libc-commits] [libc] [libc] Add function spec for `getauxval` (PR #97492)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 2 17:00:31 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Izaak Schroeder (izaakschroeder)
<details>
<summary>Changes</summary>
Does what it says on the box.
---
Full diff: https://github.com/llvm/llvm-project/pull/97492.diff
1 Files Affected:
- (modified) libc/spec/gnu_ext.td (+5-1)
``````````diff
diff --git a/libc/spec/gnu_ext.td b/libc/spec/gnu_ext.td
index 161bb4e4a0d9d..e360c766c5c54 100644
--- a/libc/spec/gnu_ext.td
+++ b/libc/spec/gnu_ext.td
@@ -237,7 +237,11 @@ def GnuExtensions : StandardSpec<"GNUExtensions"> {
[], // Types
[], // Enumerations
[
- //TODO: Add getauxval here
+ FunctionSpec<
+ "getauxval",
+ RetValSpec<UnsignedLongType>,
+ [ArgSpec<UnsignedLongType>]
+ >,
] // Functions
>;
``````````
</details>
https://github.com/llvm/llvm-project/pull/97492
More information about the libc-commits
mailing list