================
@@ -303,6 +323,9 @@ bool CodeGenAction::beginSourceFileAction() {
Fortran::parser::Program &parseTree{*ci.getParsing().parseTree()};
lb.lower(parseTree, ci.getInvocation().getSemanticsContext());
+ // Add dependent libraries
+ addDepdendentLibs(*mlirModule, ci);
----------------
banach-space wrote:
Apologies, I thought that this was
[FrontendAction::beginSourceFile](https://github.com/banach-space/llvm-project/blob/d0b00b2c494b44fd1da7964b9334633215765c7f/flang/lib/Frontend/FrontendAction.cpp#L38)
rather than `CodeGenAction::beginSourceFileAction()`.
I think that keeping it here is fine. Like you said, the ordering in this case
doesn't matter that much.
https://github.com/llvm/llvm-project/pull/72121
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits