ENDRecord class is no longer needed.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Why? Is it a piece of dead-code or it is never used (and surely will never be)?
Please provide some reasoning.
Why delete from class ENDRecord the support for having the entry point specified on the END card? Wouldn't that be useful in a dumping tool at least? Or is this handled somewhere else now?
Anything the ENDRecord does can be easily handled by the parent Record class.
The ENDRecord class only has two functions, getNameLength is just a wrapper for get<T>() in the parent class (defined here) and getData() is likewise a basically just a wrapper for getContinuousData(), also defined in the parent class.
There are seven different fields in the END record. Having END cards be the only record type that requires callers to unpack the record manually doesn't seem like good design.
And the class is only dead because it hasn't been connected yet.