llvm-project
4ae23bcc - [NVPTX] Correct the condition to print "\t}\n" for DWARF sections

Commit
1 year ago
[NVPTX] Correct the condition to print "\t}\n" for DWARF sections `NVPTXTargetStreamer::changeSection` needs `CurSection` to properly print "\t}\n" for DWARF sections. db48f1a1764023f8efeb055e343b967d1eb37d19 added `MCStreamer::changeSection` before `TS->changeSection`, making `CurSection == Section` when `getCurrentSectionOnly` switches to `CurFrag` (626eef5ecf92e98cbfccfa6134e0a760e7592813). cf311a1131b9aef3e66b2a20ad49cfc77212754b did fix the bug, but the mechanism is confusing. Fix it using nullable getCurrentSectionOnly().
Author
Parents
Loading