diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2022-02-03 14:51:54 -0800 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2022-02-10 09:03:07 -0800 |
commit | d6b1448809e4c6a2a5eca262bb917d5e76cf5206 (patch) | |
tree | e471848a20d8738459ed5ed98d47f8b73efd56de /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 99e5c5256ff2eeebd977f2c82567f52b1e534a1f (diff) | |
download | llvm-d6b1448809e4c6a2a5eca262bb917d5e76cf5206.zip llvm-d6b1448809e4c6a2a5eca262bb917d5e76cf5206.tar.gz llvm-d6b1448809e4c6a2a5eca262bb917d5e76cf5206.tar.bz2 |
[libc++] Remove usage of `_LIBCPP_DEBUG` in `__comp_ref_type` and replace with `_LIBCPP_DEBUG_LEVEL`
In libc++, checking specific `_LIBCPP_DEBUG_LEVEL` levels is used everywhere except in `comp_ref_type.h`. `_LIBCPP_DEBUG` is meant as a user-facing option, and internally libc++ should be checking the value of `_LIBCPP_DEBUG_LEVEL`.
The definition of `std::__debug_less` doesn't need to be hidden behind the macro, we can unconditionally expose it. It will be unused by `__comp_ref_type` unless debug mode is enabled.
This was suggested in D118940.
Reviewed By: #libc, philnik, Quuxplusone, ldionne
Differential Revision: https://reviews.llvm.org/D118950
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions