[compiler-rt] Add support for interception redirect exports.
authorEtienne Bergeron <etienneb@google.com>
Sun, 31 Jul 2016 17:56:26 +0000 (17:56 +0000)
committerEtienne Bergeron <etienneb@google.com>
Sun, 31 Jul 2016 17:56:26 +0000 (17:56 +0000)
commit0b2d71373b91f4bf1b0f832ef3e3ab85c3bb1446
tree947a733614012aeb27e81e6c120e562715e5ae34
parent64845bb8b4da276ae8ea5ea5fd305ab0dddbd91a
[compiler-rt] Add support for interception redirect exports.

Summary:
On windows, an export can be redirected to an other DLL.
This patch is adding the required support to the internal
GetProcAddress implementation.

This case was encountered by instrumenting chromium (win 64-bits)
using this GN configuration:
```
is_component_build = true
is_debug = false
enable_nacl = false
is_clang = true
is_asan = true
clang_base_path = "d:\src\llvm\ninja64"
clang_use_chrome_plugins = false
clang_version = "4.0.0"
```

The operating system is win7 (x64).
Visual Studio: 2015 Professional

Reviewers: rnk

Subscribers: llvm-commits, chrisha

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

llvm-svn: 277294
compiler-rt/lib/interception/interception_win.cc