]> granicus.if.org Git - clang/commit
Don't circumvent the debug info type cache when emitting info for EnumConstantDecl.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 20 Jun 2012 18:11:18 +0000 (18:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 20 Jun 2012 18:11:18 +0000 (18:11 +0000)
commit527e616722f45986883cbc20e4bbb5d1651e75f4
tree5c7c75c187e9448f5e98282e79a26ad272ad81e2
parent6f61ba2e57aac6fc76638addce18ed59137ab9c1
Don't circumvent the debug info type cache when emitting info for EnumConstantDecl.

CreateEnumType doesn't participate in caching so the descriptor for the enum
gets recomputed for every reference of an element of an enum, only to get
discarded when it gets turned into an MDNode.

No functionality change except performance.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp