DOUT is deprecated, use DEBUG(errs()) instead

This commit is contained in:
Benjamin Kramer
2009-07-27 11:44:01 +02:00
parent 3cf7b6a95c
commit 27a9f93767
4 changed files with 24 additions and 20 deletions
+2 -1
View File
@@ -28,6 +28,7 @@
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
STATISTIC(NumDeleted, "Number of metadata globals deleted");
@@ -68,7 +69,7 @@ bool StripMetaData::runOnModule(Module &M) {
&& "Not a metadata global?");
Changed = true;
NumDeleted++;
DEBUG(DOUT << "Deleting " << *G << '\n');
DEBUG(errs() << "Deleting " << *G << '\n');
G->eraseFromParent();
}
}