OSDN Git Service

[DWARF] - Fix message reporting about broken relocation.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 29 Jun 2017 14:05:18 +0000 (14:05 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 29 Jun 2017 14:05:18 +0000 (14:05 +0000)
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

lib/DebugInfo/DWARF/DWARFContext.cpp

index fdd191e..88ca2ae 100644 (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;