summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-11-29 19:27:25 +0000
committerKuba Mracek <mracek@apple.com>2017-11-29 19:27:25 +0000
commitaa4d9e2a66289fb9e865d667886ac75700a2f6c7 (patch)
treee8ec86dc27c2026f3d6e03e6ad2a393b32de8cd0 /compiler-rt/lib/sanitizer_common/sanitizer_asm.h
parent87034cb498e7cc0fd97e939506ee3699399285ad (diff)
downloadbcm5719-llvm-aa4d9e2a66289fb9e865d667886ac75700a2f6c7.tar.gz
bcm5719-llvm-aa4d9e2a66289fb9e865d667886ac75700a2f6c7.zip
[sanitizer] Refactor how assembly files are handled
This renames ASM_TSAN_SYMBOL and ASM_TSAN_SYMBOL_INTERCEPTOR to just ASM_SYMBOL and ASM_SYMBOL_INTERCEPTOR, because they can be useful in more places than just TSan. Also introduce a CMake function to add ASM sources to a target. Differential Revision: https://reviews.llvm.org/D40143 llvm-svn: 319339
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_asm.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_asm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_asm.h b/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
index 47c2b12a204..76a0bf71425 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_asm.h
@@ -47,12 +47,12 @@
# define ASM_HIDDEN(symbol) .hidden symbol
# define ASM_TYPE_FUNCTION(symbol) .type symbol, @function
# define ASM_SIZE(symbol) .size symbol, .-symbol
-# define ASM_TSAN_SYMBOL(symbol) symbol
-# define ASM_TSAN_SYMBOL_INTERCEPTOR(symbol) symbol
+# define ASM_SYMBOL(symbol) symbol
+# define ASM_SYMBOL_INTERCEPTOR(symbol) symbol
#else
# define ASM_HIDDEN(symbol)
# define ASM_TYPE_FUNCTION(symbol)
# define ASM_SIZE(symbol)
-# define ASM_TSAN_SYMBOL(symbol) _##symbol
-# define ASM_TSAN_SYMBOL_INTERCEPTOR(symbol) _wrap_##symbol
+# define ASM_SYMBOL(symbol) _##symbol
+# define ASM_SYMBOL_INTERCEPTOR(symbol) _wrap_##symbol
#endif
OpenPOWER on IntegriCloud