Make getRelocationSection MachO only.
[oota-llvm.git] / tools / llvm-readobj / MachODumper.cpp
index 9017350c4030646a848fc7122eda71982f9ed31d..aeb563a25ff36cf89182417da2feafe457808b28 100644 (file)
@@ -479,7 +479,7 @@ void MachODumper::printRelocation(const MachOObjectFile *Obj,
         return;
     }
   } else if (!IsScattered) {
-    section_iterator SecI = Reloc.getSection();
+    section_iterator SecI = Obj->getRelocationSection(DR);
     if (SecI != Obj->section_end()) {
       if (error(SecI->getName(TargetName)))
         return;