Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import shelve
import signal
from functools import wraps
from typing import IO, Any, Callable, Iterable, List, Optional, Union, TypeVar
from typing import IO, Any, Callable, Iterable, List, Optional, TypeVar, Union

from src.api import constants, errmsg, global_

Expand Down
5 changes: 1 addition & 4 deletions src/arch/z80/optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@


def init():
global LABELS
global JUMP_LABELS

LABELS.clear()
JUMP_LABELS.clear()

Expand Down Expand Up @@ -172,7 +169,7 @@ def initialize_memory(basic_block):
get_labels(basic_block)


def optimize(initial_memory):
def optimize(initial_memory: list[str]) -> str:
"""This will remove useless instructions"""
global BLOCKS
global PROC_COUNTER
Expand Down
Loading