diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-22 13:26:53 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-01-22 13:26:53 +0000 |
commit | dcf6bcb9045bd6dfde33b6740e611fab2de9b6b2 (patch) | |
tree | 0abfa66a4f55e1a6546004caf6ed047816a80c28 /llvm/lib/Transforms | |
parent | f9a7aba34a96970409d61f51ef99bb8ea7905622 (diff) | |
download | bcm5719-llvm-dcf6bcb9045bd6dfde33b6740e611fab2de9b6b2.tar.gz bcm5719-llvm-dcf6bcb9045bd6dfde33b6740e611fab2de9b6b2.zip |
[msan] Export the value of msan-keep-going flag for the runtime.
llvm-svn: 173156
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 8bb8115012a..20b6de2506d 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -361,6 +361,9 @@ bool MemorySanitizer::doInitialization(Module &M) { new GlobalVariable(M, IRB.getInt32Ty(), true, GlobalValue::WeakODRLinkage, IRB.getInt32(TrackOrigins), "__msan_track_origins"); + new GlobalVariable(M, IRB.getInt32Ty(), true, GlobalValue::WeakODRLinkage, + IRB.getInt32(ClKeepGoing), "__msan_keep_going"); + return true; } |