mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 15:38:57 +00:00
Move more to raw_ostream.
llvm-svn: 76964
This commit is contained in:
parent
1df20e31e5
commit
ea6955ce65
@ -68,9 +68,9 @@ Value::~Value() {
|
|||||||
// a <badref>
|
// a <badref>
|
||||||
//
|
//
|
||||||
if (!use_empty()) {
|
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)
|
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";
|
<< **I << "\n";
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -509,8 +509,8 @@ void ValueHandleBase::ValueIsDeleted(Value *V) {
|
|||||||
switch (ThisNode->getKind()) {
|
switch (ThisNode->getKind()) {
|
||||||
case Assert:
|
case Assert:
|
||||||
#ifndef NDEBUG // Only in -g mode...
|
#ifndef NDEBUG // Only in -g mode...
|
||||||
cerr << "While deleting: " << *V->getType() << " %" << V->getNameStr()
|
errs() << "While deleting: " << *V->getType() << " %" << V->getNameStr()
|
||||||
<< "\n";
|
<< "\n";
|
||||||
#endif
|
#endif
|
||||||
llvm_unreachable("An asserting value handle still pointed to this"
|
llvm_unreachable("An asserting value handle still pointed to this"
|
||||||
" value!");
|
" value!");
|
||||||
|
@ -17,15 +17,16 @@
|
|||||||
#include "llvm/ValueSymbolTable.h"
|
#include "llvm/ValueSymbolTable.h"
|
||||||
#include "llvm/ADT/SmallString.h"
|
#include "llvm/ADT/SmallString.h"
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// Class destructor
|
// Class destructor
|
||||||
ValueSymbolTable::~ValueSymbolTable() {
|
ValueSymbolTable::~ValueSymbolTable() {
|
||||||
#ifndef NDEBUG // Only do this in -g mode...
|
#ifndef NDEBUG // Only do this in -g mode...
|
||||||
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
|
for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ++VI)
|
||||||
cerr << "Value still in symbol table! Type = '"
|
errs() << "Value still in symbol table! Type = '"
|
||||||
<< VI->getValue()->getType()->getDescription() << "' Name = '"
|
<< VI->getValue()->getType()->getDescription() << "' Name = '"
|
||||||
<< VI->getKeyData() << "'\n";
|
<< VI->getKeyData() << "'\n";
|
||||||
assert(vmap.empty() && "Values remain in symbol table!");
|
assert(vmap.empty() && "Values remain in symbol table!");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user