[llvm] SymbolizableOjbectFile: Convert Wasm file offset to section offset for DWARF (PR #191068)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 10:55:41 PDT 2026
================
@@ -277,8 +294,9 @@ SymbolizableObjectFile::symbolizeCode(object::SectionedAddress ModuleOffset,
ModuleOffset.SectionIndex =
getModuleSectionIndexForAddress(ModuleOffset.Address);
DILineInfo LineInfo;
+ object::SectionedAddress DWARFOffset = getWasmCodeDwarfOffset(ModuleOffset);
----------------
aheejin wrote:
I'm not strongly opinionated but I prefer something with `Wasm` than general names like `getDwarfOffset ` because the purpose of that function is for Wasm, and I think it will be less confusing to readers. The reason I proposed the change was just to make it extra sure to non-Wasm readers. If you prefer the original name, I'm fine with that.
https://github.com/llvm/llvm-project/pull/191068
More information about the llvm-commits
mailing list