@@ -52,36 +52,18 @@ class M68kAsmBackend : public MCAsmBackend {
52
52
.CasesLower(" m68020" , " m68030" , " m68040" , true )
53
53
.Default(false )) {}
54
54
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 ,
59
57
const MCSubtargetInfo *STI) const override {
60
58
unsigned Size = 1 << getFixupKindLog2Size (Fixup.getKind ());
61
59
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!" );
70
61
// Check that uppper bits are either all zeros or all ones.
71
62
// Specifically ignore overflow/underflow as long as the leakage is
72
63
// limited to the lower bits. This is to remain compatible with
73
64
// 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" );
85
67
86
68
// Write in Big Endian
87
69
for (unsigned i = 0 ; i != Size; ++i)
0 commit comments