llvm.org GIT mirror llvm / b584e19
Unconditionally include msan_interface.h when building with MSan. Any version of Clang that does not provide this header is way too old to bootstrap with MSan. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201776 91177308-0d34-0410-b5e6-96231b3b80d8 Evgeniy Stepanov 5 years ago
3 changed file(s) with 3 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
5050 if( NOT PURE_WINDOWS )
5151 check_include_file(pthread.h HAVE_PTHREAD_H)
5252 endif()
53 check_include_file(sanitizer/msan_interface.h HAVE_SANITIZER_MSAN_INTERFACE_H)
5453 check_include_file(signal.h HAVE_SIGNAL_H)
5554 check_include_file(stdint.h HAVE_STDINT_H)
5655 check_include_file(sys/dir.h HAVE_SYS_DIR_H)
120120 /* Minor version of the LLVM API */
121121 #cmakedefine LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR}
122122
123 /* Define to 1 if you have the header file. */
124 #cmakedefine HAVE_SANITIZER_MSAN_INTERFACE_H ${HAVE_SANITIZER_MSAN_INTERFACE_H}
125
126123 #endif
348348 # define LLVM_FUNCTION_NAME __func__
349349 #endif
350350
351 #if defined(HAVE_SANITIZER_MSAN_INTERFACE_H)
352 # include
353 #else
354 # define __msan_allocated_memory(p, size)
355 # define __msan_unpoison(p, size)
356 #endif
357
358351 /// \macro LLVM_MEMORY_SANITIZER_BUILD
359352 /// \brief Whether LLVM itself is built with MemorySanitizer instrumentation.
360353 #if __has_feature(memory_sanitizer)
361354 # define LLVM_MEMORY_SANITIZER_BUILD 1
355 # include
362356 #else
363357 # define LLVM_MEMORY_SANITIZER_BUILD 0
358 # define __msan_allocated_memory(p, size)
359 # define __msan_unpoison(p, size)
364360 #endif
365361
366362 /// \macro LLVM_ADDRESS_SANITIZER_BUILD