diff options
author | Ryan Prichard <rprichard@google.com> | 2021-08-05 16:35:02 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2021-08-05 16:35:02 -0700 |
commit | 623cf3dfdf3e202b99e4d0529c37eb7ef2474860 (patch) | |
tree | 6171337c17e800efb1a5e4e507fc7b480790467a /llvm/lib/Analysis/TargetLibraryInfo.cpp | |
parent | 8a557d8311593627efd08d03178889971d5ae02b (diff) | |
download | llvm-623cf3dfdf3e202b99e4d0529c37eb7ef2474860.zip llvm-623cf3dfdf3e202b99e4d0529c37eb7ef2474860.tar.gz llvm-623cf3dfdf3e202b99e4d0529c37eb7ef2474860.tar.bz2 |
Mark getc_unlocked as unavailable by default
Before D45736, getc_unlocked was available by default, but turned off
for non-Cygwin/non-MinGW Windows. D45736 then added 9 more unlocked
functions, which were unavailable by default, but it also:
* left getc_unlocked enabled by default,
* removed the disabling line for Windows, and
* added code to enable getc_unlocked for GNU, Android, and OSX.
For consistency, make getc_unlocked unavailable by default. Maybe this
was the intent of D45736 anyway.
Reviewed By: MaskRay, efriedma
Differential Revision: https://reviews.llvm.org/D107527
Diffstat (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetLibraryInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index 8eb1a49..cfd9aff 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -123,6 +123,7 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, // Set IO unlocked variants as unavailable // Set them as available per system below + TLI.setUnavailable(LibFunc_getc_unlocked); TLI.setUnavailable(LibFunc_getchar_unlocked); TLI.setUnavailable(LibFunc_putc_unlocked); TLI.setUnavailable(LibFunc_putchar_unlocked); |