diff options
author | Leonard Chan <leonardchan@google.com> | 2021-06-07 14:27:07 -0700 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2021-06-09 12:55:19 -0700 |
commit | 314c049142ed22154fbe37de3a566ef38b884fab (patch) | |
tree | 9d37e044c425cf00675e10c99473f9505a464793 /llvm/lib/TextAPI/Target.cpp | |
parent | 5dbe3bf4b8dbb7e67d41c7c1360f15d512dd72a0 (diff) | |
download | llvm-314c049142ed22154fbe37de3a566ef38b884fab.zip llvm-314c049142ed22154fbe37de3a566ef38b884fab.tar.gz llvm-314c049142ed22154fbe37de3a566ef38b884fab.tar.bz2 |
[compiler-rt][hwasan] Decouple use of the TLS global for getting the shadow base and using the frame record feature
This allows for using the frame record feature (which uses __hwasan_tls)
independently from however the user wants to access the shadow base, which
prior was only usable if shadow wasn't accessed through the TLS variable or ifuncs.
Frame recording can be explicitly set according to ShadowMapping::WithFrameRecord
in ShadowMapping::init. Currently, it is only enabled on Fuchsia and if TLS is
used, so this should mimic the old behavior.
Added an extra case to prologue.ll that covers this new case.
Differential Revision: https://reviews.llvm.org/D103841
Diffstat (limited to 'llvm/lib/TextAPI/Target.cpp')
0 files changed, 0 insertions, 0 deletions