@@ -52,36 +52,18 @@ class M68kAsmBackend : public MCAsmBackend {
5252 .CasesLower(" m68020" , " m68030" , " m68040" , true )
5353 .Default(false )) {}
5454
55-
56- void applyFixup (const MCAssembler &Asm, const MCFixup &Fixup,
57- const MCValue &Target, MutableArrayRef<char > Data,
58- uint64_t Value, bool IsResolved,
55+ void applyFixup (const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &,
56+ MutableArrayRef<char > Data, uint64_t Value, bool ,
5957 const MCSubtargetInfo *STI) const override {
6058 unsigned Size = 1 << getFixupKindLog2Size (Fixup.getKind ());
6159
62- if (Fixup.getOffset () + Size > Data.size ()) {
63- LLVM_DEBUG (dbgs () << " Fixup.getOffset(): " << Fixup.getOffset () << ' \n ' );
64- LLVM_DEBUG (dbgs () << " Size: " << Size << ' \n ' );
65- LLVM_DEBUG (dbgs () << " Data.size(): " << Data.size () << ' \n ' );
66- assert (Fixup.getOffset () + Size <= Data.size () &&
67- " Invalid fixup offset!" );
68- }
69-
60+ assert (Fixup.getOffset () + Size <= Data.size () && " Invalid fixup offset!" );
7061 // Check that uppper bits are either all zeros or all ones.
7162 // Specifically ignore overflow/underflow as long as the leakage is
7263 // limited to the lower bits. This is to remain compatible with
7364 // other assemblers.
74- if (!(isIntN (Size * 8 + 1 , static_cast <int64_t >(Value)) || IsResolved)) {
75- LLVM_DEBUG (dbgs () << " Fixup.getOffset(): " << Fixup.getOffset () << ' \n ' );
76- LLVM_DEBUG (dbgs () << " Size: " << Size << ' \n ' );
77- LLVM_DEBUG (dbgs () << " Data.size(): " << Data.size () << ' \n ' );
78- LLVM_DEBUG (dbgs () << " Value: " << Value << ' \n ' );
79- LLVM_DEBUG (dbgs () << " Target: " );
80- LLVM_DEBUG (Target.print (dbgs ()));
81- LLVM_DEBUG (dbgs () << ' \n ' );
82- assert (isIntN (Size * 8 + 1 , static_cast <int64_t >(Value)) &&
83- " Value does not fit in the Fixup field" );
84- }
65+ assert (isIntN (Size * 8 + 1 , static_cast <int64_t >(Value)) &&
66+ " Value does not fit in the Fixup field" );
8567
8668 // Write in Big Endian
8769 for (unsigned i = 0 ; i != Size; ++i)
0 commit comments