Refactor RelocVisitor to take an object. This removes some
[oota-llvm.git] / lib / DebugInfo / DWARFContext.cpp
index 39799f0b235ae7d0bdbb0c2573614911e10f13fa..ceaff053ef840cc39c25945bc2e4af601e549448 100644 (file)
@@ -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()) {