[PATCH] D41698: [DebugInfo] Enable debug information for C99 VLA types
Sander de Smalen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 3 03:04:05 PST 2018
sdesmalen created this revision.
sdesmalen added reviewers: echristo, aprantl, dexonsmith, clayborg, pcc, kristof.beyls.
Herald added a subscriber: JDevlieghere.
This patch enables debugging of C99 VLA types by generating more precise
LLVM Debug metadata, using the extended DISubrange 'count' field that
takes a DIVariable.
This should implement:
Bug 30553: Debug info generated for arrays is not what GDB expects (not as good as GCC's)
https://bugs.llvm.org/show_bug.cgi?id=30553
https://reviews.llvm.org/D41698
Files:
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/debug-info-vla.c
test/CodeGenCXX/debug-info-vla.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41698.128508.patch
Type: text/x-patch
Size: 12980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180103/68c1101e/attachment.bin>
More information about the cfe-commits
mailing list