[PATCH] D125695: [clang][DebugInfo] Allow function-local type-like entities to be scoped within a lexical block (5/5)

Kristina Bessonova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 16 08:44:10 PDT 2022


krisb created this revision.
krisb added reviewers: dblaikie, aprantl, probinson.
Herald added a project: All.
krisb requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is a part from D113743 <https://reviews.llvm.org/D113743> split to make it easier to test and review.

It also enables lexical blocks as a scope for types and type-like entities
only if -debugger-tunning=gdb. lldb can't (yet) handle lexical block scoped
types (see D115277 <https://reviews.llvm.org/D115277> for details), other debuggers were not verified (yet).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125695

Files:
  clang/lib/CodeGen/CGDebugInfo.cpp
  clang/lib/CodeGen/CGDebugInfo.h
  clang/lib/CodeGen/CGDecl.cpp
  clang/test/CodeGenCXX/debug-info-local-types.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125695.429729.patch
Type: text/x-patch
Size: 11091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220516/6cea0652/attachment.bin>


More information about the cfe-commits mailing list