Skip to content

Commit d922045

Browse files
authored
[BOLT] Use AsmInfo for address size. NFCI (#115932)
Use AsmInfo instead of DWARFObj interface for extracting address size and format.
1 parent be89e79 commit d922045

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bolt/lib/Core/Exceptions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ Error BinaryFunction::parseLSDA(ArrayRef<uint8_t> LSDASectionData,
108108
DWARFDataExtractor Data(
109109
StringRef(reinterpret_cast<const char *>(LSDASectionData.data()),
110110
LSDASectionData.size()),
111-
BC.DwCtx->getDWARFObj().isLittleEndian(),
112-
BC.DwCtx->getDWARFObj().getAddressSize());
111+
BC.AsmInfo->isLittleEndian(), BC.AsmInfo->getCodePointerSize());
113112
uint64_t Offset = getLSDAAddress() - LSDASectionAddress;
114113
assert(Data.isValidOffset(Offset) && "wrong LSDA address");
115114

0 commit comments

Comments
 (0)