disable copying, enforce some invariants.

llvm-svn: 88870
This commit is contained in:
Chris Lattner 2009-11-15 20:03:53 +00:00
parent 7735878591
commit ee4cf81d9a
1 changed files with 3 additions and 0 deletions

View File

@ -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 {