Skip to content

Commit

Permalink
Change visibility defaullt to None
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed May 21, 2024
1 parent b06c64e commit a363c50
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spimdisasm/common/ContextSymbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class ContextSymbol:

isMips1Double: bool = False

visibility: str = "global"
visibility: str|None = None


@property
Expand Down
2 changes: 1 addition & 1 deletion spimdisasm/common/ElementBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def getLabelFromSymbol(self, sym: ContextSymbol|None, symName: str|None) -> str:
if label is None:
return ""
label += f" {symName or sym.getName()}"
if sym.visibility != "global":
if sym.visibility is not None:
label += f", {sym.visibility}"
if GlobalConfig.GLABEL_ASM_COUNT:
if self.index is not None:
Expand Down
2 changes: 1 addition & 1 deletion spimdisasm/common/SymbolsSegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,4 +609,4 @@ def readSplatSymbolAddrs(self, filepath: Path) -> None:
if allowBeReferenced is not None:
contextSym.allowedToBeReferenced = allowBeReferenced

contextSym.visibility = pairs.get("visibility", contextSym.visibility)
contextSym.visibility = pairs.get("visibility")

0 comments on commit a363c50

Please sign in to comment.