[lld] [LLD][COFF] Add support for EXPORTAS import name type. (PR #86541)

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 10:50:43 PDT 2024


================
@@ -607,6 +608,12 @@ Export LinkerDriver::parseExport(StringRef arg) {
       e.isPrivate = true;
       continue;
     }
+    if (tok.equals_insensitive("exportas")) {
+      if (rest.empty() || rest.contains(','))
----------------
dpaoliello wrote:

I wonder if we should improve the error message here - it might not be obvious that `EXPORTAS` must be the last item if its present.

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


More information about the llvm-commits mailing list