-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Conversation
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.
Besides the duplicate flag, LGTM.
llvm/tools/llvm-dis/llvm-dis.cpp
Outdated
@@ -82,6 +82,9 @@ static cl::opt<bool> PrintThinLTOIndexOnly( | |||
|
|||
extern cl::opt<bool> WriteNewDbgInfoFormat; | |||
|
|||
extern cl::opt<bool> WriteNewDbgInfoFormat; |
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.
Unintentional addition?
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.
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. |
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.
Nit: Again perhaps add a line above here, but it's a minor stylistic point.
Thanks! |
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).