-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[LLVM][DWARF] Chnage order for .debug_names abbrev print out #80229
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
Changes from 1 commit
da9e927
7682bb9
deb32f4
23795c5
e7f39c3
a98f430
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -847,8 +847,15 @@ void DWARFDebugNames::NameIndex::dumpForeignTUs(ScopedPrinter &W) const { | |
|
||
void DWARFDebugNames::NameIndex::dumpAbbreviations(ScopedPrinter &W) const { | ||
ListScope AbbrevsScope(W, "Abbreviations"); | ||
for (const auto &Abbr : Abbrevs) | ||
Abbr.dump(W); | ||
std::vector<const Abbrev *> AbbrevsVect; | ||
for (const llvm::DWARFDebugNames::Abbrev &Abbr : Abbrevs) | ||
AbbrevsVect.push_back(&Abbr); | ||
std::sort(AbbrevsVect.begin(), AbbrevsVect.end(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should never use
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My interpretation that only applies if we have equal elements. Which shouldn't be the case in this case. Abbrev offsets are monotonically increasing. |
||
[](const Abbrev *LHS, const Abbrev *RHS) { | ||
return LHS->Code < RHS->Code; | ||
}); | ||
for (const llvm::DWARFDebugNames::Abbrev *Abbr : AbbrevsVect) | ||
ayermolo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Abbr->dump(W); | ||
} | ||
|
||
void DWARFDebugNames::NameIndex::dumpBucket(ScopedPrinter &W, | ||
|
Uh oh!
There was an error while loading. Please reload this page.