[PATCH] Fixed debug info generation for function static variables, typedef, and records
Amjad Aboud
amjad.aboud at intel.com
Wed May 13 12:07:47 PDT 2015
Hi echristo, dblaikie, ABataev,
A Fix for Bug 19238.
Function static variable defined inside a lexical scope, same as typedef and record (class, struct or union), which are declared inside a lexical scope, were all associated to the function as its parent scope, rather than to the lexical scope they are defined or declared inside.
This patch provides a fix for all these three cases in the Clang debug info generation.
This patch is related to "D9758"
http://reviews.llvm.org/D9760
Files:
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/debug-info-lb-class.cpp
test/CodeGenCXX/debug-info-lb-static.cpp
test/CodeGenCXX/debug-info-lb-typedef.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9760.25722.patch
Type: text/x-patch
Size: 7268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150513/17d2258a/attachment.bin>
More information about the cfe-commits
mailing list