[lldb] Fix build error from 07355c1c08

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.
This commit is contained in:
Pavel Labath 2020-02-17 14:12:29 +01:00
parent 67f63f3f7c
commit b2d64b698f
1 changed files with 2 additions and 1 deletions

View File

@ -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) {