GarbageCollection.cpp don't check `hasOldInputFile()` like other diagnostic paths do
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Open GarbageCollection.cpp and inspect GarbageCollection::stripSections(), then compare its origin-tracking logic with the other diagnostic paths that check hasOldInputFile(). Update the diagnostic handling so the same old-input-file pattern is followed for the relevant section types, and verify that diagnostic output reflects the original input without changing functional behavior.
Written by the indexing model from the issue text.
Description
I noticed that GarbageCollection::stripSections() only checks CommonELFSection for origin tracking, but other diagnostic paths in the codebase check hasOldInputFile() for all section types
GC should follow the same pattern.
if (IsCommonSection && Section->hasOldInputFile()) {
I = Section->getOldInputFile()->getInput();
}
After PR #1585 we can remove IsCommonSection check.
Diagnostic change only, no functional impact.
- Dominant language
- C++
- Stars
- 259
- Forks
- 84
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 76
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qualcomm/eld
-
plugin-framework
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
documentation good first issue not-planned
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
bug good first issue plugin-framework
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·