[PATCH] D73264: [DWARF] Do not pass Version to DWARFExpression.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 11:57:54 PST 2020
dblaikie added inline comments.
================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp:158-160
case Operation::SizeRefAddr:
- if (getRefAddrSize(AddressSize, Version) == 8) {
- Operands[Operand] = Data.getU64(&Offset);
- } else if (getRefAddrSize(AddressSize, Version) == 4) {
- Operands[Operand] = Data.getU32(&Offset);
- } else {
- assert(getRefAddrSize(AddressSize, Version) == 2);
- Operands[Operand] = Data.getU16(&Offset);
- }
+ // TODO: Add support for 64-bit DWARF format.
+ Operands[Operand] = Data.getU32(&Offset);
----------------
Looks like the old code handled 64 and 32 - so is this not a regression? (unlikely we'd want to regress functionality) or was this dead code previously? Or some other explanation?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73264/new/
https://reviews.llvm.org/D73264
More information about the llvm-commits
mailing list