[NFC] Refactor initialisation of Darwin malloc zone fields into separate function...
authorDan Liew <dan@su-root.co.uk>
Fri, 2 Nov 2018 15:28:11 +0000 (15:28 +0000)
committerDan Liew <dan@su-root.co.uk>
Fri, 2 Nov 2018 15:28:11 +0000 (15:28 +0000)
commita8eaaa80067f26f23aa2853ecb7197327afc7730
treefdafb2e10c5515f27247147653284806ee014c86
parent2dc07d0cf3ec9222eba1087ab68d0c15d1b48b9f
[NFC] Refactor initialisation of Darwin malloc zone fields into separate function called `InitMallocZoneFields()` which is now called from `ReplaceSystemMalloc()`.

Summary:
The motivation here is to be able support initialisation of the
malloc zone on other code paths.

rdar://problem/45284065

Reviewers: kubamracek, george.karpenkov

Subscribers: llvm-commits, #sanitizers

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

llvm-svn: 345983
compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc