anza-xyz / move

Move compiler targeting llvm supported backends
https://discord.gg/wFgfjG9J
Apache License 2.0
109 stars 34 forks source link

Refactor write to file of LLVM module moving it to Module #372

Closed dmakarov closed 1 year ago

dmakarov commented 1 year ago

Motivation

Dependency on llvm::Module is convoluted, requiring mutable references. This change moves the function that writes LLVM module to a file into the Module implementation, simplifying dependency on llvm::Module.

Test Plan

Non functional change, all tests should pass.