[clang][DebugInfo] Emit access specifiers for typedefs
authorJonathan Camilleri <jon.d.cam@gmail.com>
Thu, 22 Sep 2022 16:59:00 +0000 (16:59 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 22 Sep 2022 17:08:41 +0000 (17:08 +0000)
commit4cd7529e4caa00fa7ba27d9de18adea3c702ad8f
tree4ba04aad439c93646a941ea38000d46d77328700
parent08288052aef28fb335318e6da0ee952dd6137b83
[clang][DebugInfo] Emit access specifiers for typedefs

The accessibility level of a typedef or using declaration in a
struct or class was being lost when producing debug information.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D134339
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-access.cpp
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp