[llvm-commits] [llvm] r88870 - /llvm/trunk/include/llvm/Analysis/LazyValueInfo.h
Chris Lattner
sabre at nondot.org
Sun Nov 15 12:03:54 PST 2009
Author: lattner
Date: Sun Nov 15 14:03:53 2009
New Revision: 88870
URL: http://llvm.org/viewvc/llvm-project?rev=88870&view=rev
Log:
disable copying, enforce some invariants.
Modified:
llvm/trunk/include/llvm/Analysis/LazyValueInfo.h
Modified: llvm/trunk/include/llvm/Analysis/LazyValueInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LazyValueInfo.h?rev=88870&r1=88869&r2=88870&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LazyValueInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LazyValueInfo.h Sun Nov 15 14:03:53 2009
@@ -27,9 +27,12 @@
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 {
More information about the llvm-commits
mailing list