Change the things we pass to Mangled::SetValue to be ConstStrings instead of

char*'s - Greg removed the methods which accept char*'s earlier today.

llvm-svn: 160539
This commit is contained in:
Jason Molenda 2012-07-20 03:35:44 +00:00
parent 55a952bfcf
commit d9d5cf5413
1 changed files with 5 additions and 5 deletions

View File

@ -1801,7 +1801,7 @@ struct lldb_copy_dyld_cache_local_symbols_entry
{ {
// We have two consecutive N_SO entries where the first contains a directory // We have two consecutive N_SO entries where the first contains a directory
// and the second contains a full path. // and the second contains a full path.
sym[sym_idx - 1].GetMangled().SetValue(symbol_name, false); sym[sym_idx - 1].GetMangled().SetValue(ConstString(symbol_name), false);
m_nlist_idx_to_sym_idx[nlist_idx] = sym_idx - 1; m_nlist_idx_to_sym_idx[nlist_idx] = sym_idx - 1;
add_nlist = false; add_nlist = false;
} }
@ -1823,7 +1823,7 @@ struct lldb_copy_dyld_cache_local_symbols_entry
if (*full_so_path.rbegin() != '/') if (*full_so_path.rbegin() != '/')
full_so_path += '/'; full_so_path += '/';
full_so_path += symbol_name; full_so_path += symbol_name;
sym[sym_idx - 1].GetMangled().SetValue(full_so_path.c_str(), false); sym[sym_idx - 1].GetMangled().SetValue(ConstString(full_so_path.c_str()), false);
add_nlist = false; add_nlist = false;
m_nlist_idx_to_sym_idx[nlist_idx] = sym_idx - 1; m_nlist_idx_to_sym_idx[nlist_idx] = sym_idx - 1;
} }
@ -2127,8 +2127,8 @@ struct lldb_copy_dyld_cache_local_symbols_entry
if (symbol_name_non_abi_mangled) if (symbol_name_non_abi_mangled)
{ {
sym[sym_idx].GetMangled().SetMangledName (symbol_name_non_abi_mangled); sym[sym_idx].GetMangled().SetMangledName (ConstString(symbol_name_non_abi_mangled));
sym[sym_idx].GetMangled().SetDemangledName (symbol_name); sym[sym_idx].GetMangled().SetDemangledName (ConstString(symbol_name));
} }
else else
{ {
@ -2140,7 +2140,7 @@ struct lldb_copy_dyld_cache_local_symbols_entry
if (symbol_name) if (symbol_name)
{ {
sym[sym_idx].GetMangled().SetValue(symbol_name, symbol_name_is_mangled); sym[sym_idx].GetMangled().SetValue(ConstString(symbol_name), symbol_name_is_mangled);
} }
} }