https://bugs.llvm.org/show_bug.cgi?id=41365

            Bug ID: 41365
           Summary: [codeview] Clang should use a better DISubprogram name
                    for dynamic initializer functions
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Otherwise the IDE will display the mangled name, which is silly.

Today, in VS, I see this stack frame:
>       llvm-tblgen.exe!??__EMatchPrefix@@YAXXZ() Line 129      C++

Which is because we emit S_LPROC32_ID like this:
       0 | S_LPROC32_ID [size = 56] `??__Ef@@YAXXZ`
           parent = 0, end = 0, addr = 0000:0000, code size = 26
           type = `0x1004 (??__Ef@@YAXXZ)`, debug start = 0, debug end = 0,
flags = none

Which is because we emit the DISubprogram like this:
!33 = distinct !DISubprogram(name: "??__Ef@@YAXXZ", scope: !3, file: !3, line:
12, type: !34, isLocal: true, isDefinition: true, scopeLine: 12, flags:
DIFlagPrototyped, isO
ptimized: false, unit: !2, retainedNodes: !4)

That "name:" field should be something human friendly instead of the mangled
name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to