diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-20 23:23:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-20 23:23:18 +0000 |
commit | 9be3ec6264637c705abf170ad5bb5b0d9de74bfe (patch) | |
tree | 6c4e6accbcf282ab31b136cab82ad6995689a397 | |
parent | 15b4ec22f16cf460f3038aa496cdd99c51a3c69b (diff) | |
download | bcm5719-llvm-9be3ec6264637c705abf170ad5bb5b0d9de74bfe.tar.gz bcm5719-llvm-9be3ec6264637c705abf170ad5bb5b0d9de74bfe.zip |
Attempt to appease the DragonEgg buildbots.
llvm-svn: 122288
-rw-r--r-- | llvm/lib/Analysis/LazyValueInfo.cpp | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp index 9854beaea5c..bd6fc3a8eb4 100644 --- a/llvm/lib/Analysis/LazyValueInfo.cpp +++ b/llvm/lib/Analysis/LazyValueInfo.cpp @@ -301,7 +301,30 @@ namespace { deleted(); } }; - +} + +namespace llvm { + template<> + struct DenseMapInfo<LVIValueHandle> { + typedef DenseMapInfo<Value*> PointerInfo; + static inline LVIValueHandle getEmptyKey() { + return LVIValueHandle(PointerInfo::getEmptyKey(), + static_cast<LazyValueInfoCache*>(0)); + } + static inline LVIValueHandle getTombstoneKey() { + return LVIValueHandle(PointerInfo::getTombstoneKey(), + static_cast<LazyValueInfoCache*>(0)); + } + static unsigned getHashValue(const LVIValueHandle &Val) { + return PointerInfo::getHashValue(Val); + } + static bool isEqual(const LVIValueHandle &LHS, const LVIValueHandle &RHS) { + return LHS == RHS; + } + }; +} + +namespace { /// LazyValueInfoCache - This is the cache kept by LazyValueInfo which /// maintains information about queries across the clients' queries. class LazyValueInfoCache { @@ -392,27 +415,6 @@ namespace { }; } // end anonymous namespace -namespace llvm { - template<> - struct DenseMapInfo<LVIValueHandle> { - typedef DenseMapInfo<Value*> PointerInfo; - static inline LVIValueHandle getEmptyKey() { - return LVIValueHandle(PointerInfo::getEmptyKey(), - static_cast<LazyValueInfoCache*>(0)); - } - static inline LVIValueHandle getTombstoneKey() { - return LVIValueHandle(PointerInfo::getTombstoneKey(), - static_cast<LazyValueInfoCache*>(0)); - } - static unsigned getHashValue(const LVIValueHandle &Val) { - return PointerInfo::getHashValue(Val); - } - static bool isEqual(const LVIValueHandle &LHS, const LVIValueHandle &RHS) { - return LHS == RHS; - } - }; -} - void LVIValueHandle::deleted() { for (std::set<std::pair<AssertingVH<BasicBlock>, Value*> >::iterator I = Parent->OverDefinedCache.begin(), |