Skip to content

Commit 71cf967

Browse files
committed
Fix typos
1 parent eec47b6 commit 71cf967

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/api/symboltable.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,6 @@ def access_call(self, id_: str, lineno: int, scope=None, type_=None):
533533
entry.callable = False
534534
return entry
535535

536-
# Mangled name (functions always has _name as mangled)
537-
# entry.mangled = '_%s' % entry.name
538-
# entry.callable = True # HINT: must be true already
539536
return entry
540537

541538
def access_label(self, id_: str, lineno: int, scope: Optional[Scope] = None):
@@ -691,7 +688,7 @@ def declare_label(self, id_: str, lineno: int) -> Optional[SymbolLABEL]:
691688
# Just the label, because it starts with '.' so it's a root-global label
692689
entry.mangled = f'{id_}'
693690
else:
694-
# TODO: This shouln't be needed (but still is). Need investigation
691+
# TODO: This shouldn't be needed (but still is). Need investigation
695692
entry.mangled = f'{global_.LABELS_NAMESPACE}.{symbols.LABEL.prefix}{entry.name}'
696693

697694
entry.is_line_number = isinstance(id1, int)
@@ -720,7 +717,7 @@ def declare_param(self, id_: str, lineno: int, type_=None, is_array=False) -> Op
720717
entry = self.declare(id_, lineno, symbols.PARAMDECL(id_, lineno, type_))
721718

722719
if entry is None:
723-
return
720+
return None
724721

725722
entry.declared = True
726723
if entry.type_.implicit:

0 commit comments

Comments
 (0)