From: Chris Lattner Date: Sun, 15 Nov 2009 20:03:53 +0000 (+0000) Subject: disable copying, enforce some invariants. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac57410a56dbe0eb944699b67f9d84cf986a127e;p=oota-llvm.git disable copying, enforce some invariants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88870 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/LazyValueInfo.h b/include/llvm/Analysis/LazyValueInfo.h index dd80fcedd4a..566788daa61 100644 --- a/include/llvm/Analysis/LazyValueInfo.h +++ b/include/llvm/Analysis/LazyValueInfo.h @@ -27,9 +27,12 @@ namespace llvm { class LazyValueInfo : public FunctionPass { class TargetData *TD; void *PImpl; + LazyValueInfo(const LazyValueInfo&); // DO NOT IMPLEMENT. + void operator=(const LazyValueInfo&); // DO NOT IMPLEMENT. public: static char ID; LazyValueInfo() : FunctionPass(&ID), PImpl(0) {} + ~LazyValueInfo() { assert(PImpl == 0 && "releaseMemory not called"); } /// Tristate - This is used to return true/false/dunno results. enum Tristate {