[llvm] [llvm-debuginfo-analyzer][DOC] Change .wasm references to .o (PR #85566)

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 17 06:05:31 PDT 2024


https://github.com/CarlosAlbertoEnciso created https://github.com/llvm/llvm-project/pull/85566

As part of the WebAssembly support work
https://github.com/llvm/llvm-project/pull/82588

As the object files used in the test cases are a single object (just produced by clang without being processed by wasm-ld), it was determined to use .o intead of .wasm.

Update the README.txt to reflect that the tool now supports WebAssembly.

>From 897090dd537910c2eb61cf086ab760ffd3978c04 Mon Sep 17 00:00:00 2001
From: Carlos Alberto Enciso <carlos.alberto.enciso at gmail.com>
Date: Sun, 17 Mar 2024 12:16:55 +0000
Subject: [PATCH] [llvm-debuginfo-analyzer][DOC] Change .wasm references to .o

As part of the WebAssembly support work
https://github.com/llvm/llvm-project/pull/82588

As the object files used in the test cases are a single
object (just produced by clang without being processed
by wasm-ld), it was determined to use .o intead of .wasm.

Update the README.txt to reflect that the tool now supports
WebAssembly.
---
 .../CommandGuide/llvm-debuginfo-analyzer.rst  | 28 +++++++++----------
 llvm/tools/llvm-debuginfo-analyzer/README.txt |  3 --
 2 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
index 00c070cedb479c..54622cc61fdfda 100644
--- a/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
+++ b/llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst
@@ -1982,7 +1982,7 @@ level and debug info format.
   llvm-debuginfo-analyzer --attribute=level,format
                           --output-sort=offset
                           --print=scopes,symbols,types,lines,instructions
-                          test-clang.wasm
+                          test-clang.o
 
 or
 
@@ -1991,7 +1991,7 @@ or
   llvm-debuginfo-analyzer --attribute=level,format
                           --output-sort=offset
                           --print=elements
-                          test-clang.wasm
+                          test-clang.o
 
 Each row represents an element that is present within the debug
 information. The first column represents the scope level, followed by
@@ -2001,7 +2001,7 @@ the element.
 .. code-block:: none
 
   Logical View:
-  [000]           {File} 'test-clang.wasm' -> WASM
+  [000]           {File} 'test-clang.o' -> WASM
 
   [001]             {CompileUnit} 'test.cpp'
   [002]     2         {Function} extern not_inlined 'foo' -> 'int'
@@ -2099,10 +2099,10 @@ layout and given the number of matches.
                           --select=BLOCK --select=.store
                           --report=list
                           --print=symbols,types,instructions,summary
-                          test-clang.wasm
+                          test-clang.o
 
   Logical View:
-  [000]           {File} 'test-clang.wasm'
+  [000]           {File} 'test-clang.o'
 
   [001]           {CompileUnit} 'test.cpp'
   [003]           {Code} 'block'
@@ -2139,10 +2139,10 @@ with the printing mode to obtain the following logical view output.
                           --select-regex --select-nocase --select=INTe
                           --report=list
                           --print=symbols,types
-                          test-clang.wasm test-dwarf-gcc.o
+                          test-clang.o test-dwarf-gcc.o
 
   Logical View:
-  [000]           {File} 'test-clang.wasm'
+  [000]           {File} 'test-clang.o'
 
   [001]           {CompileUnit} 'test.cpp'
   [003]     4     {TypeAlias} 'INTEGER' -> 'int'
@@ -2175,13 +2175,13 @@ giving more context by swapping the reference and target object files.
                           --compare=types
                           --report=view
                           --print=symbols,types
-                          test-clang.wasm test-dwarf-gcc.o
+                          test-clang.o test-dwarf-gcc.o
 
-  Reference: 'test-clang.wasm'
+  Reference: 'test-clang.o'
   Target:    'test-dwarf-gcc.o'
 
   Logical View:
-   [000]           {File} 'test-clang.wasm'
+   [000]           {File} 'test-clang.o'
 
    [001]             {CompileUnit} 'test.cpp'
    [002]     1         {TypeAlias} 'INTPTR' -> '* const int'
@@ -2209,9 +2209,9 @@ includes the name, source code location, type, lexical scope level.
                           --compare=types
                           --report=list
                           --print=symbols,types,summary
-                          test-clang.wasm test-dwarf-gcc.o
+                          test-clang.o test-dwarf-gcc.o
 
-  Reference: 'test-clang.wasm'
+  Reference: 'test-clang.o'
   Target:    'test-dwarf-gcc.o'
 
   (1) Missing Types:
@@ -2238,10 +2238,10 @@ Changing the *Reference* and *Target* order:
                           --compare=types
                           --report=list
                           --print=symbols,types,summary
-                          test-dwarf-gcc.o test-clang.wasm
+                          test-dwarf-gcc.o test-clang.o
 
   Reference: 'test-dwarf-gcc.o'
-  Target:    'test-clang.wasm'
+  Target:    'test-clang.o'
 
   (1) Missing Types:
   -[004]     4     {TypeAlias} 'INTEGER' -> 'int'
diff --git a/llvm/tools/llvm-debuginfo-analyzer/README.txt b/llvm/tools/llvm-debuginfo-analyzer/README.txt
index e6c20db7cd7121..d5b636c0f2d985 100644
--- a/llvm/tools/llvm-debuginfo-analyzer/README.txt
+++ b/llvm/tools/llvm-debuginfo-analyzer/README.txt
@@ -210,9 +210,6 @@ The following DWARF debug location operands are not supported:
 //===----------------------------------------------------------------------===//
 // Add support for additional binary formats.
 //===----------------------------------------------------------------------===//
-- WebAssembly (Wasm).
-  https://github.com/llvm/llvm-project/issues/57040#issuecomment-1211336680
-
 - Extended COFF (XCOFF)
 
 //===----------------------------------------------------------------------===//



More information about the llvm-commits mailing list