summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFContext.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-10-06 06:55:55 +0000
committerEric Christopher <echristo@gmail.com>2014-10-06 06:55:55 +0000
commit47e079d45e04c294bb968046373dc64ef497033e (patch)
treeb2febf53ec53436679414b6183f03180f48f9bf1 /llvm/lib/DebugInfo/DWARFContext.cpp
parent1452c8e640297e0134f5294d4060efdd6b103084 (diff)
downloadbcm5719-llvm-47e079d45e04c294bb968046373dc64ef497033e.tar.gz
bcm5719-llvm-47e079d45e04c294bb968046373dc64ef497033e.zip
Refactor RelocVisitor to take an object. This removes some
string comparisons and makes it a bit easier to check individual targets. Patch by Charlie Turner. llvm-svn: 219108
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp
index 39799f0b235..ceaff053ef8 100644
--- a/llvm/lib/DebugInfo/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARFContext.cpp
@@ -626,7 +626,7 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile &Obj)
Sym->getAddress(SymAddr);
}
- object::RelocVisitor V(Obj.getFileFormatName());
+ object::RelocVisitor V(Obj);
// The section address is always 0 for debug sections.
object::RelocToApply R(V.visit(Type, Reloc, 0, SymAddr));
if (V.error()) {
OpenPOWER on IntegriCloud