[flang-commits] [flang] [flang] Add comdats to functions with linkonce linkage (PR #66516)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Mon Sep 18 02:09:04 PDT 2023
================
@@ -3861,6 +3862,14 @@ class FIRToLLVMLowering
std::move(pattern)))) {
signalPassFailure();
}
+
+ // Run pass to add comdats to functions that have weak linkage on relevant platforms
+ if (fir::getTargetTriple(mod).supportsCOMDAT()) {
----------------
tblah wrote:
Ahh yeah I think you are right. I'm not sure where we can get an `MLIR::ModuleOp` in `CLOptions.inc`. This is fine as it is.
https://github.com/llvm/llvm-project/pull/66516
More information about the flang-commits
mailing list