List all sections removed by garbage collection. This option is only effective if garbage collection has been enabled via the `--gc-sections' option.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| ELF/Writer.cpp | ||
|---|---|---|
| 537 ↗ | (On Diff #42148) | If a function does not refer any member variable of a class, non-member function is preferred over member function. |
| 541–542 ↗ | (On Diff #42148) | Since this is not a warning, don't use warning(). Instead, write the message out to llvm::errs(). |
| 579–580 ↗ | (On Diff #42148) | if (isDiscarded(C)) {
reportDiscarded(C, F);
continue;
} |
Comment Actions
LGTM with nits.
| ELF/Writer.cpp | ||
|---|---|---|
| 538 ↗ | (On Diff #42280) | Let's invert this condition to return early. if (!Config->PrintGcSections || !IS || Is->isLive()) return; |
| 539–541 ↗ | (On Diff #42280) | llvm::errs() << "removing unused section from '" << IS->getSectionName()
<< "' in file '" << File->getName() << "'\n"; |