summaryrefslogtreecommitdiff
path: root/tools/libdol2asm/data
diff options
context:
space:
mode:
authorJulgodis <>2021-03-30 01:29:50 +0200
committerJulgodis <>2021-03-30 01:31:36 +0200
commit88eb7be90cfa48808f2416e427498a97b1d71faa (patch)
tree5a347b1d0dc320ac92e24c6ac5f845f0e0bf3ad8 /tools/libdol2asm/data
parent815c1a2039a8579d5dc81615250501b6942800d6 (diff)
removed double references and fixed float generation
Diffstat (limited to 'tools/libdol2asm/data')
-rw-r--r--tools/libdol2asm/data/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/libdol2asm/data/base.py b/tools/libdol2asm/data/base.py
index 3b3b8c029c..72d922af08 100644
--- a/tools/libdol2asm/data/base.py
+++ b/tools/libdol2asm/data/base.py
@@ -54,6 +54,9 @@ class ArbitraryData(Symbol):
exporter,
builder: AsyncBuilder,
c_export: bool = False):
+ if not c_export:
+ return
+
if self.is_static:
if not self.force_section and not self.require_forward_reference:
return
@@ -64,7 +67,7 @@ class ArbitraryData(Symbol):
await self.export_extern(builder)
name = self.identifier.label
- if not c_export and self.demangled_name:
+ if self.demangled_name:
name = self.demangled_name.to_str(specialize_templates=False,
without_template=False)