[clang] [llvm] [clang][llvm][aarch64][win] Add a clang flag and module attribute for import call optimization, and remove LLVM flag (PR #122831)

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 13:45:41 PST 2025


================
@@ -945,7 +944,7 @@ void AArch64AsmPrinter::emitEndOfAsmFile(Module &M) {
 
   // If import call optimization is enabled, emit the appropriate section.
   // We do this whether or not we recorded any import calls.
-  if (EnableImportCallOptimization && TT.isOSBinFormatCOFF()) {
+  if (EnableImportCallOptimization) {
----------------
dpaoliello wrote:

`EnableImportCallOptimization` will only be set to true if we are targeting COFF (see `AArch64AsmPrinter::emitStartOfAsmFile`)

https://github.com/llvm/llvm-project/pull/122831


More information about the llvm-commits mailing list