]> granicus.if.org Git - clang/commit
Add enums as global variables in the IR metadata.
authorAmy Huang <akhuang@google.com>
Thu, 30 May 2019 22:04:11 +0000 (22:04 +0000)
committerAmy Huang <akhuang@google.com>
Thu, 30 May 2019 22:04:11 +0000 (22:04 +0000)
commit83048f49327157f1cbfa6e20335ec322366abcac
tree8d1040cfcf5c6a55d9a4e186467ebe82a73abb57
parentaa3cc5e20a2514aad3787629e12bfc3f00f64e19
Add enums as global variables in the IR metadata.

Summary:
Keeps track of the enums that were used by saving them as DIGlobalVariables,
since CodeView emits debug info for global constants.

Reviewers: rnk

Subscribers: aprantl, cfe-commits, llvm-commits

Tags: #clang, #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362166 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-enum.cpp