[DWARF] - Rename variable. NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Jul 2017 10:04:51 +0000 (10:04 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 10 Jul 2017 10:04:51 +0000 (10:04 +0000)
Variable was called 'Name' and contained text
name of relocation type. Problem was that
outside of this error handling scope we already
have different 'Name' variable that contains
section name.

Change helps to avoid confusion.

llvm-svn: 307530

llvm/lib/DebugInfo/DWARF/DWARFContext.cpp

index 676a4b2..cbbdf5c 100644 (file)
@@ -1042,10 +1042,10 @@ DWARFContextInMemory::DWARFContextInMemory(
       object::RelocVisitor V(Obj);
       uint64_t Val = V.visit(Reloc.getType(), Reloc, SymInfoOrErr->Address);
       if (V.error()) {
-        SmallString<32> Name;
-        Reloc.getTypeName(Name);
+        SmallString<32> Type;
+        Reloc.getTypeName(Type);
         ErrorPolicy EP = HandleError(
-            createError("failed to compute relocation: " + Name + ", ",
+            createError("failed to compute relocation: " + Type + ", ",
                         errorCodeToError(object_error::parse_failed)));
         if (EP == ErrorPolicy::Halt)
           return;