aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/msan0.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/msan0.go')
-rw-r--r--libgo/go/runtime/msan0.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/libgo/go/runtime/msan0.go b/libgo/go/runtime/msan0.go
new file mode 100644
index 00000000000..e2067206976
--- /dev/null
+++ b/libgo/go/runtime/msan0.go
@@ -0,0 +1,22 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !msan
+
+// Dummy MSan support API, used when not built with -msan.
+
+package runtime
+
+import (
+ "unsafe"
+)
+
+const msanenabled = false
+
+// Because msanenabled is false, none of these functions should be called.
+
+func msanread(addr unsafe.Pointer, sz uintptr) { throw("msan") }
+func msanwrite(addr unsafe.Pointer, sz uintptr) { throw("msan") }
+func msanmalloc(addr unsafe.Pointer, sz uintptr) { throw("msan") }
+func msanfree(addr unsafe.Pointer, sz uintptr) { throw("msan") }