summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-07-10 10:04:51 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-07-10 10:04:51 +0000
commitc7147b368a5e10d1ecf2c1ef1bd0456b7ce22ab8 (patch)
tree6e053cbedbcb0e98549f47dd7ffce774568599a7 /llvm/lib
parentf4d154c089cd8f0381d08d3a8fb6944527a499c4 (diff)
downloadbcm5719-llvm-c7147b368a5e10d1ecf2c1ef1bd0456b7ce22ab8.tar.gz
bcm5719-llvm-c7147b368a5e10d1ecf2c1ef1bd0456b7ce22ab8.zip
[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. llvm-svn: 307530
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 676a4b2b31f..cbbdf5ca40f 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -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;
OpenPOWER on IntegriCloud