Revert 218406 - Refactor the RelocVisitor::visit method
[oota-llvm.git] / lib / DebugInfo / DWARFContext.cpp
index 39e6f4665b296ebc03567e0377836f4619c0fe25..1be0691a1d974bc9689265b51d78096b3f4e7f50 100644 (file)
@@ -667,7 +667,7 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile &Obj)
           Sym->getAddress(SymAddr);
         }
 
-        object::RelocVisitor V(Obj);
+        object::RelocVisitor V(Obj.getFileFormatName());
         // The section address is always 0 for debug sections.
         object::RelocToApply R(V.visit(Type, Reloc, 0, SymAddr));
         if (V.error()) {