[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:
George Rimar 2017-06-29 14:05:18 +00:00
parent 559aa75382
commit b25a09d0f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;