diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:43:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:43:58 +0000 |
commit | 218b22f33bb6492499b298d40bf2ab96ff2f7bc2 (patch) | |
tree | 26c4b3a5664a4f75d521e6341835022a3fc741cf /llvm/lib/AsmParser/LLParser.h | |
parent | 596760d9bbd24fcdceee3de63e5b9aa61d78611a (diff) | |
download | bcm5719-llvm-218b22f33bb6492499b298d40bf2ab96ff2f7bc2.tar.gz bcm5719-llvm-218b22f33bb6492499b298d40bf2ab96ff2f7bc2.zip |
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
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <map> #include "llvm/Support/ValueHandle.h" +#include <map> namespace llvm { class Module; @@ -80,8 +80,8 @@ namespace llvm { std::map<unsigned, std::pair<PATypeHolder, LocTy> > ForwardRefTypeIDs; std::vector<PATypeHolder> NumberedTypes; /// MetadataCache - This map keeps track of parsed metadata constants. - std::map<unsigned, WeakVH> MetadataCache; - std::map<unsigned, std::pair<WeakVH, LocTy> > ForwardRefMDNodes; + std::map<unsigned, TrackingVH<MDNode> > MetadataCache; + std::map<unsigned, std::pair<TrackingVH<MDNode>, LocTy> > ForwardRefMDNodes; SmallVector<std::pair<unsigned, MDNode *>, 2> MDsOnInst; struct UpRefRecord { /// Loc - This is the location of the upref. |