[PATCH] D87147: PR-47391 : Two DIFile entries are describing the same file two different ways
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 9 10:55:00 PST 2021
dblaikie added inline comments.
================
Comment at: clang/test/CodeGenCXX/difile_entry.cpp:11
+// CHECK: {{.*}} = distinct !DISubprogram(name: "__cxx_global_var_init", scope: {{.*}}, file: [[FILE]]
+// CHECK: {{.*}} = distinct !DISubprogram(linkageName: "_GLOBAL__sub_I_difile_entry.cpp", scope: {{.*}}, file: [[FILE]]
+
----------------
MaskRay wrote:
> The behavior is default triple dependent. `*-windows-msvc` triples use different static constructor mechanism. I fixed the test by adding `-triple %itanium_abi_triple`
Thanks for the fix!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87147/new/
https://reviews.llvm.org/D87147
More information about the cfe-commits
mailing list