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

Update Rust LLVM bindings for LLVM 5.0 #43387

Merged
merged 9 commits into from
Jul 23, 2017
Merged

Conversation

TimNN
Copy link
Contributor

@TimNN TimNN commented Jul 21, 2017

This is the initial set of changes to update the rust llvm bindings for 5.0. The llvm commits necessitating these changes are linked from the tracking issue, #43370.

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -307,7 +307,7 @@ pub struct CodegenContext<'a> {
}

struct HandlerFreeVars<'a> {
llcx: ContextRef,
_llcx: ContextRef,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This field is no longer used. I left it for the moment in case it is needed again in the future, however I can remove it if desired.

Copy link
Member

Choose a reason for hiding this comment

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

Eh seems fine to me to go ahead and remove

SizeInBits, AlignInBits, Name));
SizeInBits, AlignInBits,
#if LLVM_VERSION_GE(5, 0)
/* DWARFAddressSpace */ None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is what the go bindings do, I don't know if we want the ability to set this from rust? Even if so I guess it currently isn't used so that functionality can be added later if desired.

@TimNN TimNN mentioned this pull request Jul 21, 2017
43 tasks
@shepmaster shepmaster added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 21, 2017
@shepmaster
Copy link
Member

When I helped with the last upgrade, we were able to drop the support for the oldest version of LLVM. I'm not sure what the policy is there, or if would even help, but just as a FYI.

@TimNN
Copy link
Contributor Author

TimNN commented Jul 21, 2017

Mh, I think the oldest we still support is 3.9 and AFAIK we'll continue to support that for some time.

@TimNN
Copy link
Contributor Author

TimNN commented Jul 21, 2017

Updated with the attributes changes from @alexcrichton from TimNN#1, thanks a lot!

@alexcrichton
Copy link
Member

r? @alexcrichton

@alexcrichton
Copy link
Member

@TimNN want to throw in alexcrichton@b3e91ec which should fix archive creation as well?

@alexcrichton
Copy link
Member

All looks great to me! Feel free to r=me once it's working locally for you

@TimNN TimNN changed the title Update Rust LLVM bindings for LLVM 5.0 Part 1 Update Rust LLVM bindings for LLVM 5.0 Jul 21, 2017
@alexcrichton
Copy link
Member

@bors: r+

I believe this covers at least all the rustllvm stuff at least!

@bors
Copy link
Contributor

bors commented Jul 21, 2017

📌 Commit fb217af has been approved by alexcrichton

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 21, 2017

📌 Commit 38e40ce has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 23, 2017

⌛ Testing commit 38e40ce with merge ef19bd1...

bors added a commit that referenced this pull request Jul 23, 2017
Update Rust LLVM bindings for LLVM 5.0

This is the initial set of changes to update the rust llvm bindings for 5.0. The llvm commits necessitating these changes are linked from the tracking issue, #43370.
@bors
Copy link
Contributor

bors commented Jul 23, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing ef19bd1 to master...

@bors bors merged commit 38e40ce into rust-lang:master Jul 23, 2017
@TimNN TimNN deleted the rustllvm50 branch August 7, 2022 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants