Make it easier to use DwarfContext with MCJIT
[oota-llvm.git] / tools / llvm-objdump / MachODump.cpp
index b173ce92a0aa29c3f618d648813d3b7f78731ca6..84212c94bbb2327b4f1f172f5c21a6e6777e0050 100644 (file)
@@ -6484,7 +6484,7 @@ static void findUnwindRelocNameAddend(const MachOObjectFile *Obj,
   }
 
   auto RE = Obj->getRelocation(Reloc.getRawDataRefImpl());
-  SectionRef RelocSection = Obj->getRelocationSection(RE);
+  SectionRef RelocSection = Obj->getAnyRelocationSection(RE);
 
   uint64_t SectionAddr = RelocSection.getAddress();