-
Notifications
You must be signed in to change notification settings - Fork 182
[CIR][NFC] Rename variables to avoid gcc compilation error #1982
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
Conversation
andykaylor
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.
Thanks for addressing this! I'm making some suggestions on naming to try to align with classic codegen, but I don't have strong feelings about that.
| CompilerInstance &CompInstance; | ||
| DiagnosticsEngine &DiagEngine; | ||
| [[maybe_unused]] const HeaderSearchOptions &HdrSearchOptions; | ||
| CodeGenOptions &CGenOptions; | ||
| [[maybe_unused]] const TargetOptions &TgtOptions; | ||
| [[maybe_unused]] const LangOptions &LOptions; |
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.
| CompilerInstance &CompInstance; | |
| DiagnosticsEngine &DiagEngine; | |
| [[maybe_unused]] const HeaderSearchOptions &HdrSearchOptions; | |
| CodeGenOptions &CGenOptions; | |
| [[maybe_unused]] const TargetOptions &TgtOptions; | |
| [[maybe_unused]] const LangOptions &LOptions; | |
| CompilerInstance &CI; | |
| DiagnosticsEngine &Diags; | |
| [[maybe_unused]] const HeaderSearchOptions &HeaderSearchOpts; | |
| CodeGenOptions &CodeGenOpts; | |
| [[maybe_unused]] const TargetOptions &TargetOpts; | |
| [[maybe_unused]] const LangOptions &LangOpts; |
These changes are suggested to align with the equivalent names in clang/lib/CodeGen/BackendConsumer.h
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.
Happy to follow OG, thank you!
| CIRGenConsumer(CIRGenAction::OutputType Action, | ||
| class CompilerInstance &CompilerInstance, | ||
| class DiagnosticsEngine &DiagnosticsEngine, | ||
| class CompilerInstance &CompInstance, |
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.
| class CompilerInstance &CompInstance, | |
| class CompilerInstance &CI, |
And likewise, as above.
0299f0f to
7f328da
Compare
7f328da to
8503c49
Compare
bcardosolopes
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.
LGTM, pending we solve the CI issue to merge this safely
|
Errors are unrelated, merging anyways |
The repo no longer builds with gcc:
This fixes these variable naming issues.