forked from OSchip/llvm-project
[lldb] Unbreak the macOS build after dfd499a61c
This commit is contained in:
parent
c26649688e
commit
48677f58b0
|
@ -239,7 +239,7 @@ SymbolVendorMacOSX::CreateInstance(const lldb::ModuleSP &module_sp,
|
|||
DBGSourcePath = resolved_source_path.GetPath();
|
||||
}
|
||||
module_sp->GetSourceMappingList().Append(
|
||||
key, ConstString(DBGSourcePath), true);
|
||||
key.GetStringRef(), DBGSourcePath, true);
|
||||
// With version 2 of DBGSourcePathRemapping, we
|
||||
// can chop off the last two filename parts
|
||||
// from the source remapping and get a more
|
||||
|
@ -254,8 +254,7 @@ SymbolVendorMacOSX::CreateInstance(const lldb::ModuleSP &module_sp,
|
|||
source_path.RemoveLastPathComponent();
|
||||
source_path.RemoveLastPathComponent();
|
||||
module_sp->GetSourceMappingList().Append(
|
||||
ConstString(build_path.GetPath().c_str()),
|
||||
ConstString(source_path.GetPath().c_str()),
|
||||
build_path.GetPath(), source_path.GetPath(),
|
||||
true);
|
||||
}
|
||||
}
|
||||
|
@ -276,8 +275,7 @@ SymbolVendorMacOSX::CreateInstance(const lldb::ModuleSP &module_sp,
|
|||
DBGSourcePath = resolved_source_path.GetPath();
|
||||
}
|
||||
module_sp->GetSourceMappingList().Append(
|
||||
ConstString(DBGBuildSourcePath),
|
||||
ConstString(DBGSourcePath), true);
|
||||
DBGBuildSourcePath, DBGSourcePath, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -414,9 +414,8 @@ static bool GetModuleSpecInfoFromUUIDDictionary(CFDictionaryRef uuid_dict,
|
|||
// last two filename parts from the source remapping and get a more
|
||||
// general source remapping that still works. Add this as another
|
||||
// option in addition to the full source path remap.
|
||||
module_spec.GetSourceMappingList().Append(
|
||||
ConstString(DBGBuildSourcePath.c_str()),
|
||||
ConstString(DBGSourcePath.c_str()), true);
|
||||
module_spec.GetSourceMappingList().Append(DBGBuildSourcePath,
|
||||
DBGSourcePath, true);
|
||||
if (do_truncate_remapping_names) {
|
||||
FileSpec build_path(DBGBuildSourcePath.c_str());
|
||||
FileSpec source_path(DBGSourcePath.c_str());
|
||||
|
@ -425,8 +424,7 @@ static bool GetModuleSpecInfoFromUUIDDictionary(CFDictionaryRef uuid_dict,
|
|||
source_path.RemoveLastPathComponent();
|
||||
source_path.RemoveLastPathComponent();
|
||||
module_spec.GetSourceMappingList().Append(
|
||||
ConstString(build_path.GetPath().c_str()),
|
||||
ConstString(source_path.GetPath().c_str()), true);
|
||||
build_path.GetPath(), source_path.GetPath(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -458,9 +456,8 @@ static bool GetModuleSpecInfoFromUUIDDictionary(CFDictionaryRef uuid_dict,
|
|||
FileSystem::Instance().Resolve(resolved_source_path);
|
||||
DBGSourcePath = resolved_source_path.GetPath();
|
||||
}
|
||||
module_spec.GetSourceMappingList().Append(
|
||||
ConstString(DBGBuildSourcePath.c_str()),
|
||||
ConstString(DBGSourcePath.c_str()), true);
|
||||
module_spec.GetSourceMappingList().Append(DBGBuildSourcePath,
|
||||
DBGSourcePath, true);
|
||||
}
|
||||
}
|
||||
return success;
|
||||
|
|
Loading…
Reference in New Issue