diff options
author | Dan Liew <dan@su-root.co.uk> | 2020-04-14 21:49:50 -0700 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2020-04-16 17:25:58 -0700 |
commit | fccea7f372cbd33376d2c776f34a0c6925982981 (patch) | |
tree | 874d58c9a53b5ddf6c5707d2a7584f322c02a828 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 3eaeebec959e64c8b855fecb51077b6009c95d64 (diff) | |
download | llvm-fccea7f372cbd33376d2c776f34a0c6925982981.zip llvm-fccea7f372cbd33376d2c776f34a0c6925982981.tar.gz llvm-fccea7f372cbd33376d2c776f34a0c6925982981.tar.bz2 |
[NFC] Introduce a `LateInitialize()` method to `SymbolizerTool` that is called during the LateInitialize stage of the sanitizer runtimes.
Summary:
This is implemented by adding a `Symbolizer::LateInitializeTools()`
method that iterates over the registered tools and calls the
`LateInitialize()` method on them.
`Symbolizer::LateInitializeTools()` is now called from the various
`Symbolizer::LateInitialize()` implementations.
The default implementation of `SymbolizerTool::LateInitialize()`
does nothing so this change should be NFC.
This change allows `SymbolizerTool` implementations to perform
any initialization that they need to perform at the
LateInitialize stage of a sanitizer runtime init.
rdar://problem/58789439
Reviewers: kubamracek, yln, vitalybuka, cryptoad, phosek, rnk
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D78178
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions