-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm-lib] Add support for -defArm64Native argument. #81426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,8 +215,9 @@ int llvm::dlltoolDriverMain(llvm::ArrayRef<const char *> ArgsArr) { | |
} | ||
} | ||
|
||
if (!Path.empty() && writeImportLibrary(Def->OutputFile, Path, Def->Exports, | ||
Machine, /*MinGW=*/true)) | ||
if (!Path.empty() && | ||
writeImportLibrary(Def->OutputFile, Path, Def->Exports, std::nullopt, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that you're passing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I plan on using it in both llvm-dlltool and lld. I plan to submit llvm-dlltool as soon as this PR settles, lld part will need general ARM64X support in lld, to it will take more time. There was no strong reason to differentiate them in this PR, I guess it was easy to extract the declaration in lld from my WIP tree, while llvm-dlltool will need a small bit of refactoring. |
||
Machine, /*MinGW=*/true)) | ||
return 1; | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For users of this API, could you add a comment about the difference between Exports and NativeExports?
(Rust is pondering what to do here: rust-lang/rust#120996)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I created #81600 with a clarification.