diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp b/contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp index 68aa872..6f35dcd 100644 --- a/contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp +++ b/contrib/llvm/tools/lldb/source/Utility/LLDBAssert.cpp @@ -1,4 +1,5 @@ -//===--------------------- LLDBAssert.cpp --------------------------*- C++ -*-===// +//===--------------------- LLDBAssert.cpp --------------------------*- C++ +//-*-===// // // The LLVM Compiler Infrastructure // @@ -10,27 +11,23 @@ #include "lldb/Utility/LLDBAssert.h" #include "llvm/Support/Format.h" -#include "llvm/Support/raw_ostream.h" #include "llvm/Support/Signals.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; using namespace lldb_private; -void -lldb_private::lldb_assert (bool expression, - const char* expr_text, - const char* func, - const char* file, - unsigned int line) -{ - if (expression) - ; - else - { - errs() << format("Assertion failed: (%s), function %s, file %s, line %u\n", - expr_text, func, file, line); - errs() << "backtrace leading to the failure:\n"; - llvm::sys::PrintStackTrace(errs()); - errs() << "please file a bug report against lldb reporting this failure log, and as many details as possible\n"; - } +void lldb_private::lldb_assert(bool expression, const char *expr_text, + const char *func, const char *file, + unsigned int line) { + if (expression) + ; + else { + errs() << format("Assertion failed: (%s), function %s, file %s, line %u\n", + expr_text, func, file, line); + errs() << "backtrace leading to the failure:\n"; + llvm::sys::PrintStackTrace(errs()); + errs() << "please file a bug report against lldb reporting this failure " + "log, and as many details as possible\n"; + } } |