[llvm-commits] [llvm] r76964 - in /llvm/trunk/lib/VMCore: Value.cpp ValueSymbolTable.cpp
Daniel Dunbar
daniel at zuster.org
Fri Jul 24 03:05:44 PDT 2009
Author: ddunbar
Date: Fri Jul 24 05:05:20 2009
New Revision: 76964
URL: http://llvm.org/viewvc/llvm-project?rev=76964&view=rev
Log:
Move more to raw_ostream.
Modified:
llvm/trunk/lib/VMCore/Value.cpp
llvm/trunk/lib/VMCore/ValueSymbolTable.cpp
Modified: llvm/trunk/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Value.cpp?rev=76964&r1=76963&r2=76964&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Value.cpp (original)
+++ llvm/trunk/lib/VMCore/Value.cpp Fri Jul 24 05:05:20 2009
@@ -68,9 +68,9 @@
// a <badref>
//
if (!use_empty()) {
- cerr << "While deleting: " << *VTy << " %" << getNameStr() << "\n";
+ errs() << "While deleting: " << *VTy << " %" << getNameStr() << "\n";
for (use_iterator I = use_begin(), E = use_end(); I != E; ++I)
- cerr << "Use still stuck around after Def is destroyed:"
+ errs() << "Use still stuck around after Def is destroyed:"
<< **I << "\n";
}
#endif
@@ -509,8 +509,8 @@
switch (ThisNode->getKind()) {
case Assert:
#ifndef NDEBUG // Only in -g mode...
- cerr << "While deleting: " << *V->getType() << " %" << V->getNameStr()
- << "\n";
+ errs() << "While deleting: " << *V->getType() << " %" << V->getNameStr()
+ << "\n";
#endif
llvm_unreachable("An asserting value handle still pointed to this"
" value!");
Modified: llvm/trunk/lib/VMCore/ValueSymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ValueSymbolTable.cpp?rev=76964&r1=76963&r2=76964&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ValueSymbolTable.cpp (original)
+++ llvm/trunk/lib/VMCore/ValueSymbolTable.cpp Fri Jul 24 05:05:20 2009
@@ -17,15 +17,16 @@
#include "llvm/ValueSymbolTable.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
// Class destructor
ValueSymbolTable::~ValueSymbolTable() {
#ifndef NDEBUG // Only do this in -g mode...
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
- cerr << "Value still in symbol table! Type = '"
- << VI->getValue()->getType()->getDescription() << "' Name = '"
- << VI->getKeyData() << "'\n";
+ errs() << "Value still in symbol table! Type = '"
+ << VI->getValue()->getType()->getDescription() << "' Name = '"
+ << VI->getKeyData() << "'\n";
assert(vmap.empty() && "Values remain in symbol table!");
#endif
}
More information about the llvm-commits
mailing list