ARM: fail less catastrophically on invalid Windows input
[oota-llvm.git] / lib / MC / WinCOFFObjectWriter.cpp
index d8729bdbc4bbd017779b190328ca840628d2f5a2..bd750af5de46ffa14f9baf5f6a4df47b1b6d088b 100644 (file)
@@ -737,8 +737,9 @@ void WinCOFFObjectWriter::RecordRelocation(
   ++Reloc.Symb->Relocations;
 
   Reloc.Data.VirtualAddress += Fixup.getOffset();
-  Reloc.Data.Type = TargetObjectWriter->getRelocType(Target, Fixup,
-                                                     CrossSection);
+  Reloc.Data.Type =
+      TargetObjectWriter->getRelocType(Target, Fixup, CrossSection,
+                                       Asm.getBackend());
 
   // FIXME: Can anyone explain what this does other than adjust for the size
   // of the offset?