mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 01:56:16 +00:00
[DWARF] - Rename variable. NFC.
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33dd96a273
commit
72f54aa84f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user