From b25a09d0f520a563ab91b8973e2fd76ed4fb7b8f Mon Sep 17 00:00:00 2001 From: George Rimar Date: Thu, 29 Jun 2017 14:05:18 +0000 Subject: [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 --- llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo/DWARF') diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index fdd191e0cbf..88ca2ae5080 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -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; -- cgit v1.2.3