[LIBC][NFC] Rename errno and assert files to match other files with functions
authorMichael Jones <michaelrj@google.com>
Mon, 2 Nov 2020 23:16:00 +0000 (23:16 +0000)
committerMichael Jones <michaelrj@google.com>
Tue, 3 Nov 2020 21:29:32 +0000 (21:29 +0000)
commit5080840d280d4adaab93a88fa6033849f0589737
treea1d2aab0cb7645dca140b97604dedd302035bb6d
parent33945cdd62c40ea4ce381d4c3d49b22f8a2cc015
[LIBC][NFC] Rename errno and assert files to match other files with functions

Rename the files containing the `__errno_location` function
to `__errno_location.h/cpp` to match the other files and move
the `llvmlibc_errno` macro to its own file.

Split assert.h into `__assert_fail.h` (contains the function prototype)
and assert.h (contains the assert macro).

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D90653
libc/src/assert/CMakeLists.txt
libc/src/assert/__assert_fail.cpp
libc/src/assert/__assert_fail.h [new file with mode: 0644]
libc/src/assert/assert.h
libc/src/errno/CMakeLists.txt
libc/src/errno/__errno_location.cpp [moved from libc/src/errno/errno_location.cpp with 94% similarity]
libc/src/errno/__errno_location.h [new file with mode: 0644]
libc/src/errno/llvmlibc_errno.h