]> granicus.if.org Git - llvm/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)
commit1d414f61401eefb2f5c7348dad56be6effa6f81b
tree7a1d0c6c0bcd2c104da8f64b14425fabb25cfe49
parent355e3d11c0e39bf6bf54a4a2b93b1ff6f718a2d8
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/llvm/trunk@362166 91177308-0d34-0410-b5e6-96231b3b80d8
test/DebugInfo/COFF/global-constants.ll