[asan] add code to detect global initialization fiasco in C/C++. The sub-pass is...
authorKostya Serebryany <kcc@google.com>
Tue, 21 Aug 2012 08:24:25 +0000 (08:24 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 21 Aug 2012 08:24:25 +0000 (08:24 +0000)
commit9b9f87a87ac1b373c4c6a70904315bebbd01c50c
tree1e0784d2c3494557d77fe63c6d0b99f6e8d156d0
parenta182367e597516aa5d993a07ee2d0964b3a622e8
[asan] add code to detect global initialization fiasco in C/C++. The sub-pass is off by default for now. Patch by Reid Watson. Note: this patch changes the interface between LLVM and compiler-rt parts of asan. The corresponding patch to compiler-rt will follow.

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