Skip to content

Commit b93119a

Browse files
committed
Revert "[dsymutil] Account for DW_OP_convert being CU relative"
This reverts commit 7f3000f. Breaks tests on Windows, see commits on https://reviews.llvm.org/rG7f3000fa
1 parent dbc0cb0 commit b93119a

File tree

4 files changed

+0
-50
lines changed

4 files changed

+0
-50
lines changed

llvm/lib/DWARFLinker/DWARFLinker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,6 @@ void DWARFLinker::DIECloner::cloneExpression(
10051005
// instead indicate the generic type. The same holds for
10061006
// DW_OP_reinterpret, which is currently not supported.
10071007
if (RefOffset > 0 || Op.getCode() != dwarf::DW_OP_convert) {
1008-
RefOffset += Unit.getOrigUnit().getOffset();
10091008
auto RefDie = Unit.getOrigUnit().getDIEForOffset(RefOffset);
10101009
CompileUnit::DIEInfo &Info = Unit.getInfo(RefDie);
10111010
if (DIE *Clone = Info.Clone)
Binary file not shown.
Binary file not shown.

llvm/test/tools/dsymutil/X86/op-convert-offset.test

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)