[Lldb-commits] [lldb] b2d64b6 - [lldb] Fix build error from 07355c1c08b
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 17 05:15:29 PST 2020
Author: Pavel Labath
Date: 2020-02-17T14:12:29+01:00
New Revision: b2d64b698f8771290e42e558a1e6cc645375b90c
URL: https://github.com/llvm/llvm-project/commit/b2d64b698f8771290e42e558a1e6cc645375b90c
DIFF: https://github.com/llvm/llvm-project/commit/b2d64b698f8771290e42e558a1e6cc645375b90c.diff
LOG: [lldb] Fix build error from 07355c1c08b
The error is: no matching function for call to 'transform(std::string&, std::__cxx11::basic_string<char>::iterator, <unresolved overloaded function type>)'
The fix: replace llvm::transform with an equally simple hand-rolled
loop.
Added:
Modified:
lldb/source/Target/ABI.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/ABI.cpp b/lldb/source/Target/ABI.cpp
index 402ac235e3ff..027ea057751f 100644
--- a/lldb/source/Target/ABI.cpp
+++ b/lldb/source/Target/ABI.cpp
@@ -244,7 +244,8 @@ void MCBasedABI::AugmentRegisterInfo(RegisterInfo &info) {
std::pair<uint32_t, uint32_t>
MCBasedABI::GetEHAndDWARFNums(llvm::StringRef name) {
std::string mc_name = GetMCName(name.str());
- llvm::transform(mc_name, mc_name.begin(), std::toupper);
+ for (char &c : mc_name)
+ c = std::toupper(c);
int eh = -1;
int dwarf = -1;
for (unsigned reg = 0; reg < m_mc_register_info_up->getNumRegs(); ++reg) {
More information about the lldb-commits
mailing list