[compiler-rt] r208686 - [sanitizer] Mark several functions as possibly unused.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue May 13 04:18:23 PDT 2014
Author: eugenis
Date: Tue May 13 06:18:22 2014
New Revision: 208686
URL: http://llvm.org/viewvc/llvm-project?rev=208686&view=rev
Log:
[sanitizer] Mark several functions as possibly unused.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=208686&r1=208685&r2=208686&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Tue May 13 06:18:22 2014
@@ -96,15 +96,16 @@ typedef AddrHashMap<CommonInterceptorMet
static MetadataHashMap *interceptor_metadata_map;
#if SI_NOT_WINDOWS
-static void SetInterceptorMetadata(__sanitizer_FILE *addr,
- const FileMetadata &file) {
+UNUSED static void SetInterceptorMetadata(__sanitizer_FILE *addr,
+ const FileMetadata &file) {
MetadataHashMap::Handle h(interceptor_metadata_map, (uptr)addr);
CHECK(h.created());
h->type = CommonInterceptorMetadata::CIMT_FILE;
h->file = file;
}
-static const FileMetadata *GetInterceptorMetadata(__sanitizer_FILE *addr) {
+UNUSED static const FileMetadata *GetInterceptorMetadata(
+ __sanitizer_FILE *addr) {
MetadataHashMap::Handle h(interceptor_metadata_map, (uptr)addr,
/* remove */ false,
/* create */ false);
@@ -117,7 +118,7 @@ static const FileMetadata *GetIntercepto
}
}
-static void DeleteInterceptorMetadata(void *addr) {
+UNUSED static void DeleteInterceptorMetadata(void *addr) {
MetadataHashMap::Handle h(interceptor_metadata_map, (uptr)addr, true);
CHECK(h.exists());
}
More information about the llvm-commits
mailing list