[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 13:26:11 PDT 2024
================
@@ -607,6 +608,13 @@ Export LinkerDriver::parseExport(StringRef arg) {
e.isPrivate = true;
continue;
}
+ if (tok.equals_insensitive("exportas")) {
+ if (!rest.empty() && !rest.contains(','))
+ e.exportAs = rest;
+ else
+ error("invalid EXPORTAS value: " + rest);
----------------
dpaoliello wrote:
Should this be `fatal`, or `goto err` afterwards?
https://github.com/llvm/llvm-project/pull/86541
More information about the llvm-commits
mailing list