summaryrefslogtreecommitdiff
path: root/lib/asan/asan_internal.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-07 05:38:26 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-07 05:38:26 +0000
commitcffe2f5c30c27234260d004b54152916ff0c45c6 (patch)
tree09bf8f5a83e24ec4d598d9d7bc0468aa2aa3887b /lib/asan/asan_internal.h
parent16071602d364db4a8e99575acd098d7462ef318d (diff)
downloadcompiler-rt-cffe2f5c30c27234260d004b54152916ff0c45c6.tar.gz
compiler-rt-cffe2f5c30c27234260d004b54152916ff0c45c6.tar.bz2
compiler-rt-cffe2f5c30c27234260d004b54152916ff0c45c6.tar.xz
[Sanitizer] Move ReadFileToBuffer to sanitizer_common.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r--lib/asan/asan_internal.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h
index c832d300..9dad2130 100644
--- a/lib/asan/asan_internal.h
+++ b/lib/asan/asan_internal.h
@@ -146,13 +146,6 @@ void AsanTSDInit(void (*destructor)(void *tsd));
void *AsanTSDGet();
void AsanTSDSet(void *tsd);
-// Opens the file 'file_name" and reads up to 'max_len' bytes.
-// The resulting buffer is mmaped and stored in '*buff'.
-// The size of the mmaped region is stored in '*buff_size',
-// Returns the number of read bytes or 0 if file can not be opened.
-uptr ReadFileToBuffer(const char *file_name, char **buff,
- uptr *buff_size, uptr max_len);
-
void AppendToErrorMessageBuffer(const char *buffer);
// asan_printf.cc
void AsanPrintf(const char *format, ...);