aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit3508cd9ce9545dc64cad976e5626fc7936f20622 (patch)
tree00f0c3f3a4cc8a3a1abf9e1449ec148f2f8ee178 /lib/Support/ErrorHandling.cpp
parent22dd47e5d6c689c6e041990cfaf39671f76d8c6d (diff)
downloadexternal_llvm-3508cd9ce9545dc64cad976e5626fc7936f20622.zip
external_llvm-3508cd9ce9545dc64cad976e5626fc7936f20622.tar.gz
external_llvm-3508cd9ce9545dc64cad976e5626fc7936f20622.tar.bz2
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ErrorHandling.cpp')
-rw-r--r--lib/Support/ErrorHandling.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Support/ErrorHandling.cpp b/lib/Support/ErrorHandling.cpp
index dff4f03..8bb1566 100644
--- a/lib/Support/ErrorHandling.cpp
+++ b/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();
}
}