[all-commits] [llvm/llvm-project] 5041d0: [MC] Fix DWARF file table for files with empty DWA...
Aleksei Vetrov via All-commits
all-commits at lists.llvm.org
Tue Dec 10 09:29:48 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5041d067307344effbab41cf96d5603652b2e718
https://github.com/llvm/llvm-project/commit/5041d067307344effbab41cf96d5603652b2e718
Author: Aleksei Vetrov <vetaleha at gmail.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M llvm/lib/MC/MCParser/AsmParser.cpp
A llvm/test/MC/ELF/debug-hash-file-empty-dwarf.s
Log Message:
-----------
[MC] Fix DWARF file table for files with empty DWARF (#119020) (#119229)
Update root file in DWARF file/line table as soon as we see the first
"#line" directive.
This was moved from "enabledGenDwarfForAssembly", which is called right
before we emit DWARF information. But if the file is empty or contains
expressions that doesn't need DWARF, it is never called, leaving an
original root file and not the file in the "#line" directive.
Add a test checking for this case.
Fixes: #119020
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list