[PATCH] Fixed debug info generation for function static variables, typedef, and records

Amjad Aboud amjad.aboud at intel.com
Wed May 13 11:59:35 PDT 2015


Hi echristo, bkramer, dblaikie,

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 LLVM DWARF debug info generation.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9758

Files:
  include/llvm/CodeGen/DIE.h
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  test/DebugInfo/LB-class.ll
  test/DebugInfo/LB-static.ll
  test/DebugInfo/LB-typedef.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9758.25719.patch
Type: text/x-patch
Size: 23258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150513/d5676194/attachment.bin>


More information about the llvm-commits mailing list