[lld] [LLD][ELF] Don't instantiate ObjFile function but rather import it (PR #68025)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 00:55:33 PDT 2023
================
@@ -40,6 +40,13 @@ using namespace llvm::support::endian;
using namespace lld;
using namespace lld::elf;
+// This function is explicity instantiated in ARM.cpp, don't do it here to avoid
+// warnings with MSVC.
+extern template void ObjFile<ELF32LE>::importCmseSymbols();
----------------
MaskRay wrote:
This can be placed directly before `doParseArmCMSEImportLib` for clarity.
https://github.com/llvm/llvm-project/pull/68025
More information about the llvm-commits
mailing list