Required for https://reviews.llvm.org/D26070
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Object/ELFObjectFile.h | ||
---|---|---|
99–101 ↗ | (On Diff #76191) | Why do you want this? |
Comment Actions
I have Sectio
include/llvm/Object/ELFObjectFile.h | ||
---|---|---|
99–101 ↗ | (On Diff #76191) | I have SectionRef object and I want to get section offset, which is ELF section property. cast<ELFSectionRef>(S)->getOffset(); Without it I have to use this one: cast<ELFObjectFileBase>(S->getObject())->getSectionOffset(S->getRawDataRefImpl()); |
Comment Actions
The part adding getSectionOffset LGTM, but I agree with Rui that it is odd to have classof in only part of the hierarchy.