[llvm] SymbolizableOjbectFile: Distinguish between Wasm object and linked files (PR #191329)

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 08:50:56 PDT 2026


================
@@ -273,13 +273,26 @@ object::SectionedAddress SymbolizableObjectFile::convertDwarfOffsetForWasm(
     object::SectionedAddress ModuleOffset) const {
   if (!Module->isWasm())
     return ModuleOffset;
+
+  // For Wasm object files, addresses are already section-relative.
+  if (Module->isRelocatableObject())
+    return ModuleOffset;
----------------
dschuff wrote:

I think you actually don't. It's just a lot more clear this way. I can take it out, I don't have a strong opinion.



https://github.com/llvm/llvm-project/pull/191329


More information about the llvm-commits mailing list