CodeView - add static data members to global variable debug info.
authorAmy Huang <akhuang@google.com>
Wed, 29 May 2019 21:45:34 +0000 (21:45 +0000)
committerAmy Huang <akhuang@google.com>
Wed, 29 May 2019 21:45:34 +0000 (21:45 +0000)
commit325003be02bff4291afb7c635cb0e75d7b3d1ba2
tree2d2d0a01a054578498833e4f4f00cfc4bf6d1e76
parent86bad3f924b33d7985f34ed6b6aefdd86f204f5c
CodeView - add static data members to global variable debug info.

Summary:
Add static data members to IR debug info's list of global variables
so that they are emitted as S_CONSTANT records.

Related to https://bugs.llvm.org/show_bug.cgi?id=41615.

Reviewers: rnk

Subscribers: aprantl, cfe-commits, llvm-commits, thakis

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D62167

llvm-svn: 362038
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-static-member.cpp
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/global-constants.ll