[msan] Wrap indirect functions.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 19 Sep 2013 15:22:35 +0000 (15:22 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 19 Sep 2013 15:22:35 +0000 (15:22 +0000)
commit6591308b7e041bb8e5e211f84bcc4a97d3764cc5
treed60a58ca196056d63ec0a41701c7643b979cca3b
parent530d09a22bd2f5c638ae1932bed560c8a46e399e
[msan] Wrap indirect functions.

Adds a flag to the MemorySanitizer pass that enables runtime rewriting of
indirect calls. This is part of MSanDR implementation and is needed to return
control to the DynamiRio-based helper tool on transition between instrumented
and non-instrumented modules. Disabled by default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191006 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp
test/Instrumentation/MemorySanitizer/wrap_indirect_calls.ll [new file with mode: 0644]