diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-11-06 07:19:23 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-11-06 07:19:23 +1300 |
commit | 0156ab9223dc9e942620519778b58d1a7e4e8001 (patch) | |
tree | 32b2b3a63ead7d1d843de902c8f23aa00848d163 /src/translators/syntactic_parser.rs | |
parent | 72b44ea280abafc2e4708abafbd2415861427b80 (diff) | |
download | bedrock-asm-0156ab9223dc9e942620519778b58d1a7e4e8001.zip |
Fix source merging order
The source unit merge order as of commit 1f25783 was merging head files
in the correct order to ensure that macro definitions were merged before
any references, but it didn't ensure that the main file of the root
source unit was merged before any other main files. This was, in some
cases, causing library code to be inserted before program metadata and
initialisation code in the assembled program.
This was fixed by using different merge orders for head files, and for
main and tail files.
Diffstat (limited to 'src/translators/syntactic_parser.rs')
0 files changed, 0 insertions, 0 deletions