[llvm-commits] [llvm] r92637 - /llvm/trunk/lib/Support/ErrorHandling.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:28:30 PST 2010
Author: greened
Date: Mon Jan 4 19:28:29 2010
New Revision: 92637
URL: http://llvm.org/viewvc/llvm-project?rev=92637&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Support/ErrorHandling.cpp
Modified: llvm/trunk/lib/Support/ErrorHandling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ErrorHandling.cpp?rev=92637&r1=92636&r2=92637&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ErrorHandling.cpp (original)
+++ llvm/trunk/lib/Support/ErrorHandling.cpp Mon Jan 4 19:28:29 2010
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/ADT/Twine.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/System/Threading.h"
@@ -62,11 +63,11 @@
// llvm_unreachable is intended to be used to indicate "impossible"
// situations, and not legitimate runtime errors.
if (msg)
- errs() << msg << "\n";
- errs() << "UNREACHABLE executed";
+ dbgs() << msg << "\n";
+ dbgs() << "UNREACHABLE executed";
if (file)
- errs() << " at " << file << ":" << line;
- errs() << "!\n";
+ dbgs() << " at " << file << ":" << line;
+ dbgs() << "!\n";
abort();
}
}
More information about the llvm-commits
mailing list