[msan] Export the value of msan-keep-going flag for the runtime.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 22 Jan 2013 13:26:53 +0000 (13:26 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 22 Jan 2013 13:26:53 +0000 (13:26 +0000)
llvm-svn: 173156

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

index 8bb8115..20b6de2 100644 (file)
@@ -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;
 }