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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 07:05:18 PDT 2017


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;




More information about the llvm-commits mailing list