Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Jul 10, 2024
1 parent a8e3518 commit ba1f2a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/splat/disassembler/spimdisasm_disassembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def configure(self):
)
spimdisasm.common.GlobalConfig.ASM_DATA_LABEL = options.opts.asm_data_macro
spimdisasm.common.GlobalConfig.ASM_TEXT_END_LABEL = options.opts.asm_end_label
spimdisasm.common.GlobalConfig.ASM_EHTBL_LABEL = options.opts.asm_ehtable_label_macro
spimdisasm.common.GlobalConfig.ASM_EHTBL_LABEL = (
options.opts.asm_ehtable_label_macro
)

if options.opts.asm_emit_size_directive is not None:
spimdisasm.common.GlobalConfig.ASM_EMIT_SIZE_DIRECTIVE = (
Expand Down
9 changes: 6 additions & 3 deletions src/splat/segtypes/ps2/gcc_except_table.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from __future__ import annotations
from typing import Optional

from ..common.data import CommonSegData
from ...util import log

from ...disassembler.disassembler_section import DisassemblerSection, make_gcc_except_table_section
from ...disassembler.disassembler_section import (
DisassemblerSection,
make_gcc_except_table_section,
)


class PS2SegGcc_except_table(CommonSegData):
Expand All @@ -12,7 +15,7 @@ class PS2SegGcc_except_table(CommonSegData):
def get_linker_section(self) -> str:
return ".gcc_except_table"

def get_section_flags(self) -> str|None:
def get_section_flags(self) -> Optional[str]:
return "aw"

def configure_disassembler_section(
Expand Down
4 changes: 3 additions & 1 deletion src/splat/util/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ def parse_endianness() -> Literal["big", "little"]:
),
asm_data_macro=p.parse_opt("asm_data_macro", str, comp.asm_data_macro),
asm_end_label=p.parse_opt("asm_end_label", str, comp.asm_end_label),
asm_ehtable_label_macro=p.parse_opt("asm_ehtable_label_macro", str, comp.asm_ehtable_label_macro),
asm_ehtable_label_macro=p.parse_opt(
"asm_ehtable_label_macro", str, comp.asm_ehtable_label_macro
),
asm_emit_size_directive=asm_emit_size_directive,
include_macro_inc=p.parse_opt(
"include_macro_inc", bool, comp.include_macro_inc
Expand Down

0 comments on commit ba1f2a8

Please sign in to comment.