[compiler-rt] [NFC][sanitizer_symbolizer]Add StackTracePrinter class (PR #66530)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 10:11:27 PDT 2023
================
@@ -12,13 +12,28 @@
#include "sanitizer_stacktrace_printer.h"
+#include "sanitizer_common.h"
#include "sanitizer_file.h"
#include "sanitizer_flags.h"
#include "sanitizer_fuchsia.h"
namespace __sanitizer {
-const char *StripFunctionName(const char *function) {
+StackTracePrinter *StackTracePrinter::stacktrace_printer_;
----------------
vitalybuka wrote:
Please remove these from header and just use
`static StackTracePrinter *stacktrace_printer;`
Even better GetOrInit function local one
https://github.com/llvm/llvm-project/pull/66530
More information about the llvm-commits
mailing list