Skip to content
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

librustc_codegen_llvm: Replace deprecated API usage #69940

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Mar 11, 2020

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @estebank (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 11, 2020
@estebank
Copy link
Contributor

@rust-lang/compiler the code changes look good but I am not qualified to accept this LLVM patch.

@eddyb
Copy link
Member

eddyb commented Mar 12, 2020

@estebank Usually I do this:

r? @nagisa @nikic @hanna-kruppe

@rust-highfive rust-highfive assigned nagisa and unassigned estebank Mar 12, 2020
@hanna-kruppe
Copy link
Contributor

Thanks @tmiasko!

@bors r+

@bors
Copy link
Contributor

bors commented Mar 12, 2020

📌 Commit 24dc2cb has been approved by hanna-kruppe

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 12, 2020
Comment on lines -109 to 113
pub fn SetUnnamedAddr(global: &'a Value, unnamed: bool) {
pub fn SetUnnamedAddress(global: &'a Value, unnamed: UnnamedAddr) {
unsafe {
LLVMSetUnnamedAddr(global, unnamed as Bool);
LLVMSetUnnamedAddress(global, unnamed);
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit confused about all of these wrappers, especially the ones that don't have any casts in them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to go through all these wrappers and remove those that don't carry their weight, but IMO that is a clean-up beyond the scope of this PR.

Centril added a commit to Centril/rust that referenced this pull request Mar 19, 2020
librustc_codegen_llvm: Replace deprecated API usage
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 23, 2020
Rollup of 8 pull requests

Successful merges:

 - rust-lang#69080 (rustc_codegen_llvm: don't generate any type debuginfo for -Cdebuginfo=1.)
 - rust-lang#69940 (librustc_codegen_llvm: Replace deprecated API usage)
 - rust-lang#69942 (Increase verbosity when suggesting subtle code changes)
 - rust-lang#69968 (rustc: keep upvars tupled in {Closure,Generator}Substs.)
 - rust-lang#70123 (Ensure LLVM is in the link path for rustc tools)
 - rust-lang#70159 (Update the bundled wasi-libc with libstd)
 - rust-lang#70233 (resolve: Do not resolve visibilities on proc macro definitions twice)
 - rust-lang#70286 (Miri error type: remove UbExperimental variant)

Failed merges:

r? @ghost
@bors bors merged commit 61a56fb into rust-lang:master Mar 23, 2020
@tmiasko tmiasko deleted the llvm-api branch March 23, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants