[NFC][compiler-rt][hwasan] Move hwasanThreadList().CreateCurrentThread() into InitThreads
authorLeonard Chan <leonardchan@google.com>
Fri, 18 Jun 2021 20:39:58 +0000 (13:39 -0700)
committerLeonard Chan <leonardchan@google.com>
Fri, 18 Jun 2021 20:40:55 +0000 (13:40 -0700)
commitf7999e73caeff482a324ab0f9ac2fbeb99f8e3ec
tree1095929aa9b3d3eac04646f51298157e4fe5b97c
parent1d31fb8d122b1117cf20a9edc09812db8472e930
[NFC][compiler-rt][hwasan] Move hwasanThreadList().CreateCurrentThread() into InitThreads

Once D104553 lands, CreateCurrentThread will be able to accept optional
parameters for initializing the hwasan thread object. On fuchsia, we can get
stack info in the platform-specific InitThreads and pass it through
CreateCurrentThread. On linux, this is a no-op.

Differential Revision: https://reviews.llvm.org/D104561
compiler-rt/lib/hwasan/hwasan.cpp
compiler-rt/lib/hwasan/hwasan_linux.cpp