Instead include InputFuction and InputSegment directly
in the subclasses that use them (DefinedFunction and
DefinedGlobal).
Details
Diff Detail
- Repository
- rLLD LLVM Linker
- Build Status
Buildable 15195 Build 15195: arc lint + arc unit
Event Timeline
wasm/Symbols.cpp | ||
---|---|---|
33 | Newline before return. | |
40 | Ditto | |
wasm/Symbols.h | ||
105–106 | I think Type is always given. | |
wasm/Writer.cpp | ||
665 ↗ | (On Diff #134990) | I would recommend removing Symbol::isLive and use getChunk() and isLive() directly instead. It is because the notion of dead/alive is about chunks (or sections), and symbols are not directly considered as dead/alive. You could think that symbols are dead if they point to dead sections, and that makes some sense, but I think that not adding isLive() to Symbol makes things easier to understand. |
- feedback
wasm/Writer.cpp | ||
---|---|---|
665 ↗ | (On Diff #134990) | OK. reverting for now. I was looking at how COFF and ELF does. COFF has an isLive() method on the Symbol which works like this one, and ELF has Used bit on the symbol which seems to mean Live where its used. We might want to unify these going forward, but keeping this change small. |
I think Type is always given.