-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update LLVM and update APIs #6147
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
base: trunk
Are you sure you want to change the base?
Conversation
b5cfa3d to
7659a9a
Compare
| llvm::Triple target_triple(options_.codegen_options.target); | ||
| std::string target_error; | ||
| const llvm::Target* target = llvm::TargetRegistry::lookupTarget( | ||
| llvm::Triple(options_.codegen_options.target), target_error); | ||
| const llvm::Target* target = | ||
| llvm::TargetRegistry::lookupTarget(target_triple, target_error); |
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.
No objection to the change, but I'm surprised this was necessary -- it looks like the old code would have still compiled and worked. Did it not?
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.
Ah, looks like this issue was fixed in 5714f4d and I guess this PR was written against an older version. Nothing to see here, then.
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.
Yep, this should be gone now.
| static auto MapTagType(Context& context, const clang::TagType& type) | ||
| -> TypeExpr { | ||
| auto* tag_decl = type.getOriginalDecl(); | ||
| auto* tag_decl = type.getDecl(); |
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.
Looks like the version of LLVM we're moving to doesn't have this rename yet (llvm/llvm-project@b516dcc landed on October 15, but this PR is picking an LLVM revision from September).
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.
Now that this PR is ready for review, it includes a sufficiently new version of LLVM for this rename.
7659a9a to
9938ca3
Compare
This also updates the patch file for compiler-rt as upstream has changed a bit. No functional change.
9938ca3 to
53a2e98
Compare
chandlerc
left a comment
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.
This should now be ready to review. Sorry for confusion with earlier versions.
| static auto MapTagType(Context& context, const clang::TagType& type) | ||
| -> TypeExpr { | ||
| auto* tag_decl = type.getOriginalDecl(); | ||
| auto* tag_decl = type.getDecl(); |
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.
Now that this PR is ready for review, it includes a sufficiently new version of LLVM for this rename.
| llvm::Triple target_triple(options_.codegen_options.target); | ||
| std::string target_error; | ||
| const llvm::Target* target = llvm::TargetRegistry::lookupTarget( | ||
| llvm::Triple(options_.codegen_options.target), target_error); | ||
| const llvm::Target* target = | ||
| llvm::TargetRegistry::lookupTarget(target_triple, target_error); |
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.
Yep, this should be gone now.
This also updates the patch file for compiler-rt as upstream has changed a bit. No functional change.