[Flang][Tool][bbc] Emit module wrapper in addition to body
authorAndrew Gozillon <Andrew.Gozillon@amd.com>
Wed, 1 Mar 2023 20:32:54 +0000 (14:32 -0600)
committerAndrew Gozillon <Andrew.Gozillon@amd.com>
Wed, 1 Mar 2023 20:41:02 +0000 (14:41 -0600)
commit13b808bda93ec7271d2e5690f0d1d467e0f59f17
tree5b98c9c4ceb58b525acdda88a1f0d7fb88ecc732
parent62e3f298de80f818880d327b030655eb37799953
[Flang][Tool][bbc] Emit module wrapper in addition to body

This change seeks to emit the full module from the bbc tool and
not just the body. This change currently does not break existing tests
when running check-(mlir, flang, all). This stops the discarding of
any attributes that may be applied to the Module during
compilation.

Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D144869
flang/tools/bbc/bbc.cpp