Rename ConstPoolVal -> Constant
[oota-llvm.git] / lib / VMCore / Value.cpp
index f42037da5e93f84b8c41d4ec53d54e9d57dc4db5..3429d7c3b38a4a0c30a5338e851eea3b32d1d125 100644 (file)
@@ -8,7 +8,6 @@
 #include "llvm/InstrTypes.h"
 #include "llvm/SymbolTable.h"
 #include "llvm/SymTabValue.h"
-#include "llvm/ConstPoolVals.h"
 #include "llvm/Type.h"
 #ifndef NDEBUG      // Only in -g mode...
 #include "llvm/Assembly/Writer.h"
@@ -33,6 +32,7 @@ Value::~Value() {
   // a <badref>
   //
   if (Uses.begin() != Uses.end()) {
+    cerr << "While deleting: " << this;
     for (use_const_iterator I = Uses.begin(); I != Uses.end(); ++I)
       cerr << "Use still stuck around after Def is destroyed:" << *I << endl;
   }
@@ -85,7 +85,7 @@ User *Value::use_remove(use_iterator &I) {
 
 #ifndef NDEBUG      // Only in -g mode...
 void Value::dump() const {
-  DebugValue(*this);
+  cerr << this;
 }
 #endif