[PATCH] D19135: [sanitizers] Teach the internal demangler about Swift names

Anna Zaks via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 14 15:31:06 PDT 2016


zaks.anna created this revision.
zaks.anna added reviewers: samsonov, kubabrecka.
zaks.anna added a subscriber: llvm-commits.

Add support for Swift names when symbolicating sanitizer traces. This is now relevant since TSan and ASan support have been added to Swift on OS X.

The swift demangler will return null if we are dealing with a non-Swift string, which allows to chain the CXX demangler. I am using swift_demangle function implemented here: https://github.com/apple/swift/pull/2169/commits/4ba7e418cb30e9fd10908bcbb6e9c91d28b8069c

(The test is only testing that no regressions are introduced to the non-Swift demangling since the Swift runtime is not accessible from compiler-rt. I plan on adding further testing of this in the Swift codebase.)

http://reviews.llvm.org/D19135

Files:
  lib/sanitizer_common/sanitizer_symbolizer_internal.h
  lib/sanitizer_common/sanitizer_symbolizer_mac.cc
  lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
  lib/sanitizer_common/tests/sanitizer_symbolizer_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19135.53795.patch
Type: text/x-patch
Size: 4275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160414/958d1cf0/attachment.bin>


More information about the llvm-commits mailing list