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