summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-05-18 08:25:11 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-05-18 08:25:11 +0000
commit47f84b1a3cb2bf9335d9a68d8528babed0dbba9f (patch)
tree085d2c5f3ae906b9273f50a99e5731c54e80a976 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parentd2aaf5bd37315f6a15ed80f486085dd0a97b1b1d (diff)
downloadbcm5719-llvm-47f84b1a3cb2bf9335d9a68d8528babed0dbba9f.tar.gz
bcm5719-llvm-47f84b1a3cb2bf9335d9a68d8528babed0dbba9f.zip
[DWARF] - Simplify RelocVisitor implementation.
We do not need to store relocation width field. Patch removes relative code, that simplifies implementation. Differential revision: https://reviews.llvm.org/D33274 llvm-svn: 303335
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 3dc1ec5789e..7365c92056a 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -1104,14 +1104,14 @@ DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj,
}
object::RelocVisitor V(Obj);
- object::RelocToApply R(V.visit(Reloc.getType(), Reloc, *SymAddrOrErr));
+ uint64_t Val = V.visit(Reloc.getType(), Reloc, *SymAddrOrErr);
if (V.error()) {
SmallString<32> Name;
Reloc.getTypeName(Name);
errs() << "error: failed to compute relocation: " << Name << "\n";
continue;
}
- Map->insert({Reloc.getOffset(), {R.Value}});
+ Map->insert({Reloc.getOffset(), {Val}});
}
}
}
OpenPOWER on IntegriCloud