]> granicus.if.org Git - clang/commit
hwasan: Initialize the pass only once.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 17 Jul 2019 21:45:19 +0000 (21:45 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 17 Jul 2019 21:45:19 +0000 (21:45 +0000)
commit982f868518e35cef58b1c4e84448c46da20e7880
tree4922c422698cc6e7e2a201a3aa34cd6007b07a1d
parentbb4fb0414e9d6a4677aef1cc8cdfdcb5fca43ede
hwasan: Initialize the pass only once.

This will let us instrument globals during initialization. This required
making the new PM pass a module pass, which should still provide access to
analyses via the ModuleAnalysisManager.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366379 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp