[codeview] Fix symbol names for dynamic initializers and atexit stubs
authorReid Kleckner <rnk@google.com>
Wed, 24 Apr 2019 22:45:44 +0000 (22:45 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 24 Apr 2019 22:45:44 +0000 (22:45 +0000)
commit105c565e9120c4ae11ec93912c883ec100034746
tree4810e34e044b3ff35390bb1d7d914e5a230aca49
parent6f41bf948b5f34aec8f03ec0fbb1f6eabea26984
[codeview] Fix symbol names for dynamic initializers and atexit stubs

Summary:
Add a new variant to GlobalDecl for these so that we can detect them
more easily during debug info emission and handle them appropriately.

Reviewers: rsmith, rjmccall, jyu2

Subscribers: aprantl, cfe-commits

Tags: #clang

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

llvm-svn: 359148
clang/include/clang/AST/GlobalDecl.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CGDeclCXX.cpp
clang/test/CodeGenCXX/debug-info-global-ctor-dtor.cpp