[PATCH] D76893: Move setBugReportMsg() out from under a conditional
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 16:53:01 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5d929e66469d: Move setBugReportMsg() out from under a conditional (authored by leonardchan).
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76893/new/
https://reviews.llvm.org/D76893
Files:
llvm/lib/Support/PrettyStackTrace.cpp
Index: llvm/lib/Support/PrettyStackTrace.cpp
===================================================================
--- llvm/lib/Support/PrettyStackTrace.cpp
+++ llvm/lib/Support/PrettyStackTrace.cpp
@@ -146,8 +146,6 @@
"PLEASE submit a bug report to " BUG_REPORT_URL
" and include the crash backtrace.\n";
-void llvm::setBugReportMsg(const char *Msg) { BugReportMsg = Msg; }
-
/// This callback is run if a fatal signal is delivered to the process, it
/// prints the pretty stack trace.
static void CrashHandler(void *) {
@@ -204,6 +202,12 @@
#endif // ENABLE_BACKTRACES
+void llvm::setBugReportMsg(const char *Msg) {
+#if ENABLE_BACKTRACES
+ BugReportMsg = Msg;
+#endif
+}
+
PrettyStackTraceEntry::PrettyStackTraceEntry() {
#if ENABLE_BACKTRACES
// Handle SIGINFO first, because we haven't finished constructing yet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76893.253018.patch
Type: text/x-patch
Size: 842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200326/89e43cce/attachment.bin>
More information about the llvm-commits
mailing list