[PATCH] D95518: [Debug-Info][XCOFF] support dwarf for XCOFF for assembly output

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 27 16:34:37 PST 2021


hubert.reinterpretcast added inline comments.


================
Comment at: llvm/lib/MC/MCAsmStreamer.cpp:2351
+
+void MCAsmStreamer::doFinalizationAtTextEnd() {
+  // Emit text end. This is used to tell the debug line section where the text
----------------
I tried this patch with `-ffunction-sections`, and the assembly I get generates a duplicate definition of `L...dwline`:
```
	.byte	3
	.byte	1
	.byte	1
	.csect .main[PR],2
L..sec_end1:

	.dwsect 0x20000
L...dwline:
	.byte	0
	.byte	5
	.byte	2
	.vbyte	4, L..sec_end1
	.byte	0
	.byte	1
	.byte	1
L..debug_line_end0:
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95518/new/

https://reviews.llvm.org/D95518



More information about the llvm-commits mailing list