Data sections can now be marked as external

This commit is contained in:
2022-09-05 14:09:47 -04:00
parent 345cf3fa29
commit 2295e3bd32
6 changed files with 38 additions and 3 deletions

View File

@@ -266,7 +266,10 @@ func (section DataSection) ToString (indent int) (output string) {
section.value.kind == ArgumentKindObjectInitializationValues ||
section.value.kind == ArgumentKindArrayInitializationValues
if section.value.value == nil {
if section.external {
output += "\n"
output += doIndent(indent + 1, "external\n")
} else if section.value.value == nil {
output += "\n"
} else if isComplexInitialization {
output += "\n"