diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-19 19:27:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-19 19:27:24 +0000 |
commit | 23e81bae8c91ccd408e31ca472dca25faed85028 (patch) | |
tree | fba999a3786e0f7c4f049d6adb8acab1ddc7de3a /lib/CodeGen/CGDebugInfo.h | |
parent | 03faac3b8c85263804ffe501a01eb3da7c5198e9 (diff) |
Switch CGDebugInfo type cache to using an AssertingVH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 3308a6b952..d0f0731d6b 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -18,10 +18,15 @@ #include "clang/Basic/SourceLocation.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Analysis/DebugInfo.h" +#include "llvm/Support/ValueHandle.h" #include <map> #include "CGBuilder.h" +namespace llvm { + class MDNode; +} + namespace clang { class VarDecl; class ObjCInterfaceDecl; @@ -44,7 +49,7 @@ class CGDebugInfo { /// TypeCache - Cache of previously constructed Types. // FIXME: Eliminate this map. Be careful of iterator invalidation. - std::map<void *, llvm::DIType> TypeCache; + std::map<void *, llvm::AssertingVH<llvm::MDNode> > TypeCache; bool BlockLiteralGenericSet; llvm::DIType BlockLiteralGeneric; |