[llvm-commits] [compiler-rt] r158001 - in /compiler-rt/trunk/lib: asan/asan_internal.h sanitizer_common/sanitizer_defs.h sanitizer_common/sanitizer_internal_defs.h sanitizer_common/sanitizer_libc.cc sanitizer_common/sanitizer_libc.h sanitizer_common/sanitizer_linux.cc sanitizer_common/sanitizer_mac.cc sanitizer_common/sanitizer_posix.cc sanitizer_common/sanitizer_symbolizer.h sanitizer_common/sanitizer_win.cc tsan/rtl/tsan_defs.h
Alexey Samsonov
samsonov at google.com
Tue Jun 5 07:25:27 PDT 2012
Author: samsonov
Date: Tue Jun 5 09:25:27 2012
New Revision: 158001
URL: http://llvm.org/viewvc/llvm-project?rev=158001&view=rev
Log:
[Sanitizer] rename sanitizer_defs.h to sanitizer_internal_defs.h
Added:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Removed:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_defs.h
Modified:
compiler-rt/trunk/lib/asan/asan_internal.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
Modified: compiler-rt/trunk/lib/asan/asan_internal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_internal.h?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_internal.h (original)
+++ compiler-rt/trunk/lib/asan/asan_internal.h Tue Jun 5 09:25:27 2012
@@ -14,7 +14,7 @@
#ifndef ASAN_INTERNAL_H
#define ASAN_INTERNAL_H
-#include "sanitizer_common/sanitizer_defs.h"
+#include "sanitizer_common/sanitizer_internal_defs.h"
#include "sanitizer_common/sanitizer_libc.h"
#if !defined(__linux__) && !defined(__APPLE__) && !defined(_WIN32)
Removed: compiler-rt/trunk/lib/sanitizer_common/sanitizer_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_defs.h?rev=158000&view=auto
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_defs.h (removed)
@@ -1,62 +0,0 @@
-//===-- sanitizer_defs.h ----------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file is shared between AddressSanitizer and ThreadSanitizer.
-// It contains macro used in run-time libraries code.
-//===----------------------------------------------------------------------===//
-#ifndef SANITIZER_DEFS_H
-#define SANITIZER_DEFS_H
-
-#include "sanitizer_interface_defs.h"
-using namespace __sanitizer; // NOLINT
-// ----------- ATTENTION -------------
-// This header should NOT include any other headers to avoid portability issues.
-
-// Common defs.
-#define INLINE static inline
-#define INTERFACE_ATTRIBUTE SANITIZER_INTERFACE_ATTRIBUTE
-#define WEAK SANITIZER_WEAK_ATTRIBUTE
-
-// Platform-specific defs.
-#if defined(_WIN32)
-typedef unsigned long DWORD; // NOLINT
-// FIXME(timurrrr): do we need this on Windows?
-# define ALIAS(x)
-# define ALIGNED(x) __declspec(align(x))
-# define NOINLINE __declspec(noinline)
-# define NORETURN __declspec(noreturn)
-# define THREADLOCAL __declspec(thread)
-#else // _WIN32
-# define ALIAS(x) __attribute__((alias(x)))
-# define ALIGNED(x) __attribute__((aligned(x)))
-# define NOINLINE __attribute__((noinline))
-# define NORETURN __attribute__((noreturn))
-# define THREADLOCAL __thread
-#endif // _WIN32
-
-// We have no equivalent of these on Windows.
-#ifndef _WIN32
-# define ALWAYS_INLINE __attribute__((always_inline))
-# define LIKELY(x) __builtin_expect(!!(x), 1)
-# define UNLIKELY(x) __builtin_expect(!!(x), 0)
-# define FORMAT(f, a) __attribute__((format(printf, f, a)))
-# define USED __attribute__((used))
-#endif
-
-// If __WORDSIZE was undefined by the platform, define it in terms of the
-// compiler built-ins __LP64__ and _WIN64.
-#ifndef __WORDSIZE
-# if __LP64__ || defined(_WIN64)
-# define __WORDSIZE 64
-# else
-# define __WORDSIZE 32
-# endif
-#endif // __WORDSIZE
-
-#endif // SANITIZER_DEFS_H
Added: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=158001&view=auto
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (added)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Jun 5 09:25:27 2012
@@ -0,0 +1,62 @@
+//===-- sanitizer_internal_defs.h -------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file is shared between AddressSanitizer and ThreadSanitizer.
+// It contains macro used in run-time libraries code.
+//===----------------------------------------------------------------------===//
+#ifndef SANITIZER_DEFS_H
+#define SANITIZER_DEFS_H
+
+#include "sanitizer_interface_defs.h"
+using namespace __sanitizer; // NOLINT
+// ----------- ATTENTION -------------
+// This header should NOT include any other headers to avoid portability issues.
+
+// Common defs.
+#define INLINE static inline
+#define INTERFACE_ATTRIBUTE SANITIZER_INTERFACE_ATTRIBUTE
+#define WEAK SANITIZER_WEAK_ATTRIBUTE
+
+// Platform-specific defs.
+#if defined(_WIN32)
+typedef unsigned long DWORD; // NOLINT
+// FIXME(timurrrr): do we need this on Windows?
+# define ALIAS(x)
+# define ALIGNED(x) __declspec(align(x))
+# define NOINLINE __declspec(noinline)
+# define NORETURN __declspec(noreturn)
+# define THREADLOCAL __declspec(thread)
+#else // _WIN32
+# define ALIAS(x) __attribute__((alias(x)))
+# define ALIGNED(x) __attribute__((aligned(x)))
+# define NOINLINE __attribute__((noinline))
+# define NORETURN __attribute__((noreturn))
+# define THREADLOCAL __thread
+#endif // _WIN32
+
+// We have no equivalent of these on Windows.
+#ifndef _WIN32
+# define ALWAYS_INLINE __attribute__((always_inline))
+# define LIKELY(x) __builtin_expect(!!(x), 1)
+# define UNLIKELY(x) __builtin_expect(!!(x), 0)
+# define FORMAT(f, a) __attribute__((format(printf, f, a)))
+# define USED __attribute__((used))
+#endif
+
+// If __WORDSIZE was undefined by the platform, define it in terms of the
+// compiler built-ins __LP64__ and _WIN64.
+#ifndef __WORDSIZE
+# if __LP64__ || defined(_WIN64)
+# define __WORDSIZE 64
+# else
+# define __WORDSIZE 32
+# endif
+#endif // __WORDSIZE
+
+#endif // SANITIZER_DEFS_H
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.cc?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.cc Tue Jun 5 09:25:27 2012
@@ -10,7 +10,7 @@
// This file is shared between AddressSanitizer and ThreadSanitizer
// run-time libraries. See sanitizer_libc.h for details.
//===----------------------------------------------------------------------===//
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
namespace __sanitizer {
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h Tue Jun 5 09:25:27 2012
@@ -18,7 +18,7 @@
#ifndef SANITIZER_LIBC_H
#define SANITIZER_LIBC_H
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
// No code here yet. Will move more code in the next changes.
namespace __sanitizer {
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Tue Jun 5 09:25:27 2012
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#ifdef __linux__
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
#include <fcntl.h>
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Tue Jun 5 09:25:27 2012
@@ -14,7 +14,7 @@
#ifdef __APPLE__
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
#include <sys/mman.h>
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_posix.cc Tue Jun 5 09:25:27 2012
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if defined(__linux__) || defined(__APPLE__)
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
#include <stdarg.h>
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h Tue Jun 5 09:25:27 2012
@@ -24,7 +24,7 @@
#ifndef SANITIZER_SYMBOLIZER_H
#define SANITIZER_SYMBOLIZER_H
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
// WARNING: Do not include system headers here. See details above.
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Tue Jun 5 09:25:27 2012
@@ -16,7 +16,7 @@
#include <assert.h>
-#include "sanitizer_defs.h"
+#include "sanitizer_internal_defs.h"
#include "sanitizer_libc.h"
#define UNIMPLEMENTED_WIN() assert(false)
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h?rev=158001&r1=158000&r2=158001&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h Tue Jun 5 09:25:27 2012
@@ -14,7 +14,7 @@
#ifndef TSAN_DEFS_H
#define TSAN_DEFS_H
-#include "sanitizer_common/sanitizer_defs.h"
+#include "sanitizer_common/sanitizer_internal_defs.h"
#include "tsan_stat.h"
#ifndef TSAN_DEBUG
More information about the llvm-commits
mailing list