Fix a flake8 lint.
This commit is contained in:
@@ -477,7 +477,8 @@ fnaddr4 = TailRecipe(
|
||||
'fnaddr4', FuncAddr, size=4, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs4.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::Abs4.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
sink.put4(0);
|
||||
''')
|
||||
|
||||
@@ -486,7 +487,8 @@ fnaddr8 = TailRecipe(
|
||||
'fnaddr8', FuncAddr, size=8, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs8.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::Abs8.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
sink.put8(0);
|
||||
''')
|
||||
|
||||
@@ -495,7 +497,8 @@ allones_fnaddr4 = TailRecipe(
|
||||
'allones_fnaddr4', FuncAddr, size=4, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs4.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::Abs4.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
// Write the immediate as `!0` for the benefit of BaldrMonkey.
|
||||
sink.put4(!0);
|
||||
''')
|
||||
@@ -505,7 +508,8 @@ allones_fnaddr8 = TailRecipe(
|
||||
'allones_fnaddr8', FuncAddr, size=8, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs8.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::Abs8.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
// Write the immediate as `!0` for the benefit of BaldrMonkey.
|
||||
sink.put8(!0);
|
||||
''')
|
||||
@@ -515,7 +519,8 @@ gvaddr4 = TailRecipe(
|
||||
'gvaddr4', UnaryGlobalVar, size=4, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs4.into(), &func.global_vars[global_var].symbol_name());
|
||||
sink.reloc_external(RelocKind::Abs4.into(),
|
||||
&func.global_vars[global_var].symbol_name());
|
||||
sink.put4(0);
|
||||
''')
|
||||
|
||||
@@ -524,7 +529,8 @@ gvaddr8 = TailRecipe(
|
||||
'gvaddr8', UnaryGlobalVar, size=8, ins=(), outs=GPR,
|
||||
emit='''
|
||||
PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink);
|
||||
sink.reloc_external(RelocKind::Abs8.into(), &func.global_vars[global_var].symbol_name());
|
||||
sink.reloc_external(RelocKind::Abs8.into(),
|
||||
&func.global_vars[global_var].symbol_name());
|
||||
sink.put8(0);
|
||||
''')
|
||||
|
||||
@@ -798,7 +804,8 @@ call_id = TailRecipe(
|
||||
'call_id', Call, size=4, ins=(), outs=(),
|
||||
emit='''
|
||||
PUT_OP(bits, BASE_REX, sink);
|
||||
sink.reloc_external(RelocKind::PCRel4.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::PCRel4.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
sink.put4(0);
|
||||
''')
|
||||
|
||||
|
||||
@@ -183,7 +183,8 @@ UJ = EncRecipe(
|
||||
UJcall = EncRecipe(
|
||||
'UJcall', Call, size=4, ins=(), outs=(),
|
||||
emit='''
|
||||
sink.reloc_external(RelocKind::Call.into(), &func.dfg.ext_funcs[func_ref].name);
|
||||
sink.reloc_external(RelocKind::Call.into(),
|
||||
&func.dfg.ext_funcs[func_ref].name);
|
||||
// rd=%x1 is the standard link register.
|
||||
put_uj(bits, 0, 1, sink);
|
||||
''')
|
||||
|
||||
Reference in New Issue
Block a user