summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-01-22 13:26:53 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-01-22 13:26:53 +0000
commitbe0008a4df72bf9da3246707cdec2766ace75d32 (patch)
treeecaea400cb93e5f67611c68e35648fc60477d805
parent4247b13252a99b284e1ed396be9755878d42df2a (diff)
downloadllvm-be0008a4df72bf9da3246707cdec2766ace75d32.tar.gz
llvm-be0008a4df72bf9da3246707cdec2766ace75d32.tar.bz2
llvm-be0008a4df72bf9da3246707cdec2766ace75d32.tar.xz
[msan] Export the value of msan-keep-going flag for the runtime.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173156 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Instrumentation/MemorySanitizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index 8bb8115012..20b6de2506 100644
--- a/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/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;
}