Prepare PrettyStackTrace for LLDB adoption
authorSean Callanan <scallanan@apple.com>
Wed, 14 Dec 2016 19:09:43 +0000 (19:09 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 14 Dec 2016 19:09:43 +0000 (19:09 +0000)
commit032dbf9ee3646743de95a98195149d377065573f
tree3ef7b757b9a60a0d5ce1953b4df1749bef58f5db
parent373e36a4104e4b94ac101ce821291b840500aabc
Prepare PrettyStackTrace for LLDB adoption

This patch fixes the linkage for __crashtracer_info__, making it have the proper mangling (extern "C") and linkage (private extern).
It also adds a new PrettyStackTrace type, allowing LLDB to adopt this instead of Host::SetCrashDescriptionWithFormat().

Without this patch, CrashTracer on macOS won't pick up pretty stack traces from any LLVM client.
An LLDB commit adopting this API will follow shortly.

Differential Revision: https://reviews.llvm.org/D27683

llvm-svn: 289689
llvm/include/llvm/Support/PrettyStackTrace.h
llvm/lib/Support/PrettyStackTrace.cpp