================
@@ -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) {
----------------
efriedma-quic wrote:

Maybe leave the isOSBinFormatCOFF() checks so things don't explode if someone 
tries to use the metadata on a non-COFF target.

https://github.com/llvm/llvm-project/pull/122831
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to