[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 31 14:19:27 PST 2018


sdesmalen updated this revision to Diff 132275.
sdesmalen added a comment.

- Now always emit an alloca for a VLA dimension expression (regardless of whether -g is passed).
- Fixed up some more tests since it now also triggers for all tests with variable length arrays that don't pass -g.
- Refactored EmitAndRegisterVariableArrayDimensions into two phases (one phase to create the alloca, another to create the llvm.dbg.declare call).


https://reviews.llvm.org/D41698

Files:
  lib/CodeGen/CGBlocks.cpp
  lib/CodeGen/CGDebugInfo.cpp
  lib/CodeGen/CGDebugInfo.h
  lib/CodeGen/CGDecl.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  lib/CodeGen/CGStmtOpenMP.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/debug-info-vla.c
  test/CodeGenCXX/debug-info-vla.cpp
  test/CodeGenCXX/vla-consruct.cpp
  test/CodeGenObjC/arc.m
  test/OpenMP/target_codegen.cpp
  test/OpenMP/target_parallel_codegen.cpp
  test/OpenMP/target_parallel_for_codegen.cpp
  test/OpenMP/target_parallel_for_simd_codegen.cpp
  test/OpenMP/target_simd_codegen.cpp
  test/OpenMP/target_teams_codegen.cpp
  test/OpenMP/target_teams_distribute_codegen.cpp
  test/OpenMP/target_teams_distribute_simd_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41698.132275.patch
Type: text/x-patch
Size: 30349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180131/2b20f351/attachment-0001.bin>


More information about the cfe-commits mailing list