aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:28:29 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:28:29 +0000
commit80604d5f09ca0a826eae84aae71352185f6655e5 (patch)
tree168ba41a844791580c792e1e9ddd7cb47c4ba622 /llvm/lib/Support/ErrorHandling.cpp
parent6ef94ad6154f50b87b5ec4edf8cd1ac9307b75e2 (diff)
downloadllvm-80604d5f09ca0a826eae84aae71352185f6655e5.zip
llvm-80604d5f09ca0a826eae84aae71352185f6655e5.tar.gz
llvm-80604d5f09ca0a826eae84aae71352185f6655e5.tar.bz2
Change errs() to dbgs().
llvm-svn: 92637
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index dff4f03..8bb1566 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -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 @@ void llvm_unreachable_internal(const char *msg, const char *file,
// 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();
}
}