[llvm-bugs] [Bug 43905] New: COFF Debug info missing nested enumeration.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 5 03:53:42 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=43905
Bug ID: 43905
Summary: COFF Debug info missing nested enumeration.
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: DebugInfo
Assignee: unassignedbugs at nondot.org
Reporter: international.phantom at gmail.com
CC: jdevlieghere at apple.com, keith.walker at arm.com,
llvm-bugs at lists.llvm.org,
paul_robinson at playstation.sony.com
Given the following test case:
//------------------------------------------------------------
// enum.cpp
//------------------------------------------------------------
struct STRUCT_a {
enum ENUM_a { One = '1', Two = '2' };
ENUM_a Enum_a;
};
void testEnum_1() {
STRUCT_a Struct;
}
//------------------------------------------------------------
Using the following command line options to generate debug info
(DWARF) and (COFF):
clang -c -g -O0 enum.cpp -o enum-dwarf.o
clang -c -g -O0 enum.cpp -o enum-coff.o -gcodeview --target=x86_64-windows
Looking at the output generated by llvm-dwarfdump, llvm-readobj and llvm-diva,
the COFF debug info shows the nested 'ENUM_a' in the 'STRUCT_a' scope.
llvm-dwarfdump --debug-info enum-dwarf.o
llvm-readobj --codeview enum-coff.o
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191105/88c0ccf3/attachment.html>
More information about the llvm-bugs
mailing list