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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306677
91177308-0d34-0410-b5e6-
96231b3b80d8
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;