[PATCH] D105662: Fix incorrect DWARF 5 file name 0 when using -no-integrated-as
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 12 12:40:01 PDT 2021
MaskRay added inline comments.
================
Comment at: llvm/test/CodeGen/Generic/dwarf-source.ll:14
; ASM-4: .file 2 "/test{{.*[/\\]}}t2.h" source "22222222222222222222222222222222"
-; ASM-5: .file 0 "/test{{.*[/\\]}}t.c" source "00000000000000000000000000000000"
+; ASM-5: .file 0 "/test" "t.c" source "00000000000000000000000000000000"
; ASM-5: .file 1 "t1.h" source "11111111111111111111111111111111"
----------------
I sent D105835 (driver option) to fix the original issue. Clang sets ``UseDwarfDirectory` propably.
A similar change is needed on llc side. llc should set `UseDwarfDirectory` to false only if `-no-integrated-as` and dwarf-version<5.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105662/new/
https://reviews.llvm.org/D105662
More information about the llvm-commits
mailing list