[llvm] [MC] Fix DWARF file table for files with empty DWARF (PR #119572)

Aleksei Vetrov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 06:14:25 PST 2024


================
@@ -0,0 +1,12 @@
+// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -o %t %s
+// RUN: llvm-readelf --sections %t | FileCheck %s
----------------
noxwell wrote:

Done, put it into `debug-hash-file.s`, because the body of the test is from here. I used this test, because it produces non-empty `.debug_info`, therefore this test offers more complete check that all debug information is disabled without `-g` flag.

https://github.com/llvm/llvm-project/pull/119572


More information about the llvm-commits mailing list