-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[llvm-gsymutil] Don't warn about non-increasing line tables with merged functions #122217
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 all commits
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 |
|---|---|---|
|
|
@@ -147,7 +147,7 @@ class GsymCreator { | |
| bool IsSegment = false; | ||
| bool Finalized = false; | ||
| bool Quiet; | ||
|
|
||
| bool UseMergedFuncs = false; | ||
|
|
||
| /// Get the first function start address. | ||
| /// | ||
|
|
@@ -486,6 +486,9 @@ class GsymCreator { | |
| /// encode. | ||
| llvm::Expected<std::unique_ptr<GsymCreator>> | ||
| createSegment(uint64_t SegmentSize, size_t &FuncIdx) const; | ||
|
|
||
| bool getUseMergedFunctions() const { return UseMergedFuncs; } | ||
|
Contributor
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. It seems you're matching get/set pair, but this is just about checking a status. I prefer |
||
| void setUseMergedFunctions(bool Enable) { UseMergedFuncs = Enable; } | ||
| }; | ||
|
|
||
| } // namespace gsym | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -405,7 +405,7 @@ static void convertFunctionLineTable(OutputAggregator &Out, CUInfo &CUI, | |
| OS << "warning: duplicate line table detected for DIE:\n"; | ||
| Die.dump(OS, 0, DIDumpOptions::getForSingleDIE()); | ||
| }); | ||
| else | ||
| else if (!Gsym.getUseMergedFunctions()) | ||
|
Contributor
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 really should have brackets around these if/else blocks |
||
| Out.Report("Non-monotonically increasing addresses", | ||
| [&](raw_ostream &OS) { | ||
| OS << "error: line table has addresses that do 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.
Can we document this variable?