summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2022-02-13 17:57:28 -0800
committerRaman Tenneti <rtenneti@google.com>2022-02-14 10:10:13 -0800
commitf2a7f835958f8bd39314acad3210875e83cad326 (patch)
tree2e12dbb12703862452b3fe6aec98cba17dffba39 /llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
parent07b9a44515eba580ba181a5c84118fb31f80e80f (diff)
Introduce getenv to LLVM libc
Add support for getenv as defined by the Open Group's "System Interface & Header" in https://pubs.opengroup.org/onlinepubs/7908799/xsh/getenv.html getenv requires a standard way of accessing the environment, so a pointer to the environment is added to the startup in crt1. Consquently, this function is not usable on top of other libcs. Added starts_with method to StringView. getenv function uses it. Co-authored-by: Jeff Bailey <jeffbailey@google.com> Reviewed By: sivachandra, rtenneti Differential Revision: https://reviews.llvm.org/D119403
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp')
0 files changed, 0 insertions, 0 deletions