Skip to content

Commit c8da999

Browse files
[llvm-debuginfo-analyzer][DOC] Change .wasm references to .o (#85566)
As part of the WebAssembly support work #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.
1 parent ec34699 commit c8da999

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

llvm/docs/CommandGuide/llvm-debuginfo-analyzer.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ level and debug info format.
19821982
llvm-debuginfo-analyzer --attribute=level,format
19831983
--output-sort=offset
19841984
--print=scopes,symbols,types,lines,instructions
1985-
test-clang.wasm
1985+
test-clang.o
19861986
19871987
or
19881988

@@ -1991,7 +1991,7 @@ or
19911991
llvm-debuginfo-analyzer --attribute=level,format
19921992
--output-sort=offset
19931993
--print=elements
1994-
test-clang.wasm
1994+
test-clang.o
19951995
19961996
Each row represents an element that is present within the debug
19971997
information. The first column represents the scope level, followed by
@@ -2001,7 +2001,7 @@ the element.
20012001
.. code-block:: none
20022002
20032003
Logical View:
2004-
[000] {File} 'test-clang.wasm' -> WASM
2004+
[000] {File} 'test-clang.o' -> WASM
20052005
20062006
[001] {CompileUnit} 'test.cpp'
20072007
[002] 2 {Function} extern not_inlined 'foo' -> 'int'
@@ -2099,10 +2099,10 @@ layout and given the number of matches.
20992099
--select=BLOCK --select=.store
21002100
--report=list
21012101
--print=symbols,types,instructions,summary
2102-
test-clang.wasm
2102+
test-clang.o
21032103
21042104
Logical View:
2105-
[000] {File} 'test-clang.wasm'
2105+
[000] {File} 'test-clang.o'
21062106
21072107
[001] {CompileUnit} 'test.cpp'
21082108
[003] {Code} 'block'
@@ -2139,10 +2139,10 @@ with the printing mode to obtain the following logical view output.
21392139
--select-regex --select-nocase --select=INTe
21402140
--report=list
21412141
--print=symbols,types
2142-
test-clang.wasm test-dwarf-gcc.o
2142+
test-clang.o test-dwarf-gcc.o
21432143
21442144
Logical View:
2145-
[000] {File} 'test-clang.wasm'
2145+
[000] {File} 'test-clang.o'
21462146
21472147
[001] {CompileUnit} 'test.cpp'
21482148
[003] 4 {TypeAlias} 'INTEGER' -> 'int'
@@ -2175,13 +2175,13 @@ giving more context by swapping the reference and target object files.
21752175
--compare=types
21762176
--report=view
21772177
--print=symbols,types
2178-
test-clang.wasm test-dwarf-gcc.o
2178+
test-clang.o test-dwarf-gcc.o
21792179
2180-
Reference: 'test-clang.wasm'
2180+
Reference: 'test-clang.o'
21812181
Target: 'test-dwarf-gcc.o'
21822182
21832183
Logical View:
2184-
[000] {File} 'test-clang.wasm'
2184+
[000] {File} 'test-clang.o'
21852185
21862186
[001] {CompileUnit} 'test.cpp'
21872187
[002] 1 {TypeAlias} 'INTPTR' -> '* const int'
@@ -2209,9 +2209,9 @@ includes the name, source code location, type, lexical scope level.
22092209
--compare=types
22102210
--report=list
22112211
--print=symbols,types,summary
2212-
test-clang.wasm test-dwarf-gcc.o
2212+
test-clang.o test-dwarf-gcc.o
22132213
2214-
Reference: 'test-clang.wasm'
2214+
Reference: 'test-clang.o'
22152215
Target: 'test-dwarf-gcc.o'
22162216
22172217
(1) Missing Types:
@@ -2238,10 +2238,10 @@ Changing the *Reference* and *Target* order:
22382238
--compare=types
22392239
--report=list
22402240
--print=symbols,types,summary
2241-
test-dwarf-gcc.o test-clang.wasm
2241+
test-dwarf-gcc.o test-clang.o
22422242
22432243
Reference: 'test-dwarf-gcc.o'
2244-
Target: 'test-clang.wasm'
2244+
Target: 'test-clang.o'
22452245
22462246
(1) Missing Types:
22472247
-[004] 4 {TypeAlias} 'INTEGER' -> 'int'

llvm/tools/llvm-debuginfo-analyzer/README.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ The following DWARF debug location operands are not supported:
210210
//===----------------------------------------------------------------------===//
211211
// Add support for additional binary formats.
212212
//===----------------------------------------------------------------------===//
213-
- WebAssembly (Wasm).
214-
https://github.com/llvm/llvm-project/issues/57040#issuecomment-1211336680
215-
216213
- Extended COFF (XCOFF)
217214

218215
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)