[PATCH] D58538: [DebugInfo] Add source attributes for function declaration on behalf of owner CU

Eugene Leviant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 22:17:41 PST 2019


evgeny777 marked an inline comment as done.
evgeny777 added inline comments.


================
Comment at: test/DebugInfo/X86/template_function_decl.ll:30
+; struct S gs_bar;
+; struct S2 gs2_bar;
+; int bar(int v) {
----------------
dblaikie wrote:
> What purpose does S2 serve in this test case?
I need `inc2.h` to be in debugging information. Including it before inc1.h in bar.cpp causes inc1.h to have identifier `3` in bar.cpp CU. Such identifier doesn't exist in foo.cpp, that's why you get `DW_AT_decl_file (0x3)` in llvm-dwarfdump output


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58538/new/

https://reviews.llvm.org/D58538





More information about the llvm-commits mailing list