forked from OSchip/llvm-project
[DWARF] - Fix message reporting about broken relocation.
Because of mistake introduced in r306517, wrong variable ("name" instead of "Name") was used in error message. As a result it reported section name instead of relocation name. This file still needs cleanup to match LLVM coding style and more tests I think. llvm-svn: 306677
This commit is contained in:
parent
559aa75382
commit
b25a09d0f5
|
@ -1073,7 +1073,7 @@ DWARFContextInMemory::DWARFContextInMemory(
|
|||
SmallString<32> Name;
|
||||
Reloc.getTypeName(Name);
|
||||
ErrorPolicy EP = HandleError(
|
||||
createError("failed to compute relocation: " + name + ", ",
|
||||
createError("failed to compute relocation: " + Name + ", ",
|
||||
errorCodeToError(object_error::parse_failed)));
|
||||
if (EP == ErrorPolicy::Halt)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue