libcxxabi [PR58117][NFC]: Open code lower bound
authorNathan Sidwell <nathan@acm.org>
Thu, 20 Oct 2022 11:10:47 +0000 (07:10 -0400)
committerNathan Sidwell <nathan@acm.org>
Thu, 20 Oct 2022 13:11:24 +0000 (09:11 -0400)
commitc7ca21436d626b188d87774044d4c087cbbe7fcf
treed42aa6f3a4aa7a502af68f44138014bc11f54de7
parenta401ce441694612df21e7c29f6aabd89aff6ca6c
libcxxabi [PR58117][NFC]: Open code lower bound

This open codes the use of lower-bound when looking for an operator
encoding. Using std::lower_bound can result in symbol references to
the C++ library and that breaks the ABI demangler, which mandates no
such dependency.

Differential Revision: https://reviews.llvm.org/D135799

Fixes: https://github.com/llvm/llvm-project/issues/58117
libcxxabi/src/demangle/ItaniumDemangle.h
llvm/include/llvm/Demangle/ItaniumDemangle.h