From 218b22f33bb6492499b298d40bf2ab96ff2f7bc2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Dec 2009 21:43:58 +0000 Subject: switch to TrackingVH instead of WeakVH, since these can never be RAUW'd and go to null. This also gets us some sorely lacking type safety. llvm-svn: 92272 --- llvm/lib/AsmParser/LLParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/AsmParser/LLParser.h') diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index eec524a5e65..7e901820527 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -17,8 +17,8 @@ #include "LLLexer.h" #include "llvm/Module.h" #include "llvm/Type.h" -#include #include "llvm/Support/ValueHandle.h" +#include namespace llvm { class Module; @@ -80,8 +80,8 @@ namespace llvm { std::map > ForwardRefTypeIDs; std::vector NumberedTypes; /// MetadataCache - This map keeps track of parsed metadata constants. - std::map MetadataCache; - std::map > ForwardRefMDNodes; + std::map > MetadataCache; + std::map, LocTy> > ForwardRefMDNodes; SmallVector, 2> MDsOnInst; struct UpRefRecord { /// Loc - This is the location of the upref. -- cgit v1.2.3