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

[RemoveDIs] Load into new debug info format by default in llvm-dis #86276

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

OCHyams
Copy link
Contributor

@OCHyams OCHyams commented Mar 22, 2024

Directly load all bitcode into the new debug info format in llvm-dis. This means that new-mode bitcode no longer round-trips back to old-mode after parsing, and that old-mode bitcode gets auto-upgraded to new-mode debug info (which is the current in-memory default in LLVM).

@OCHyams OCHyams requested review from jryans and SLTozer March 22, 2024 12:33
Copy link
Contributor

@SLTozer SLTozer left a comment

Choose a reason for hiding this comment

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

Besides the duplicate flag, LGTM.

@@ -82,6 +82,9 @@ static cl::opt<bool> PrintThinLTOIndexOnly(

extern cl::opt<bool> WriteNewDbgInfoFormat;

extern cl::opt<bool> WriteNewDbgInfoFormat;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unintentional addition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, yep, that just fell out of a badly applied patch. Thanks!

@@ -168,6 +169,9 @@ int main(int argc, char **argv) {

cl::HideUnrelatedOptions({&DisCategory, &getColorCategory()});
cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
// Load bitcode into the new debug info format by default.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Again perhaps add a line above here, but it's a minor stylistic point.

@OCHyams
Copy link
Contributor Author

OCHyams commented Mar 25, 2024

Thanks!

@OCHyams OCHyams merged commit e550022 into llvm:main Mar 25, 2024
3 of 4 checks passed
@OCHyams OCHyams deleted the removedis-llvm-dis branch March 25, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants