[llvm] r306677 - [DWARF] - Fix message reporting about broken relocation.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 11:37:26 PDT 2017


Test case?

On Thu, Jun 29, 2017 at 7:05 AM George Rimar via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: grimar
> Date: Thu Jun 29 07:05:18 2017
> New Revision: 306677
>
> URL: http://llvm.org/viewvc/llvm-project?rev=306677&view=rev
> Log:
> [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.
>
> Modified:
>     llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
>
> Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=306677&r1=306676&r2=306677&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
> +++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Thu Jun 29 07:05:18
> 2017
> @@ -1073,7 +1073,7 @@ DWARFContextInMemory::DWARFContextInMemo
>          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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/5a5cca37/attachment.html>


More information about the llvm-commits mailing list