disable this code for now, re-breaking PR2975, but fixing

a testcase I'm about to attach to that pr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-04-08 04:36:59 +00:00
parent 00a7b52385
commit bd6de0a2b3

View File

@ -670,12 +670,11 @@ protected:
std::multimap<unsigned, PATypeHolder> TypesByHash; std::multimap<unsigned, PATypeHolder> TypesByHash;
public: public:
~TypeMapBase() ~TypeMapBase() {
{
// PATypeHolder won't destroy non-abstract types. // PATypeHolder won't destroy non-abstract types.
// We can't destroy them by simply iterating, because // We can't destroy them by simply iterating, because
// they may contain references to each-other. // they may contain references to each-other.
#if 0
for (std::multimap<unsigned, PATypeHolder>::iterator I for (std::multimap<unsigned, PATypeHolder>::iterator I
= TypesByHash.begin(), E = TypesByHash.end(); I != E; ++I) { = TypesByHash.begin(), E = TypesByHash.end(); I != E; ++I) {
Type *Ty = const_cast<Type*>(I->second.Ty); Type *Ty = const_cast<Type*>(I->second.Ty);
@ -689,6 +688,7 @@ public:
operator delete(Ty); operator delete(Ty);
} }
} }
#endif
} }
void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) { void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) {