diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-07-30 08:39:16 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-07-30 08:39:16 +0000 |
| commit | 573ba3499ea4a18838e0d020483d927cc3146580 (patch) | |
| tree | 3a2744ca5cdff0fb794b8dd538119114e330a4ee | |
| parent | c02da467f4c11627b375dd66ab7d734ecc81a1f5 (diff) | |
| download | bcm5719-llvm-573ba3499ea4a18838e0d020483d927cc3146580.tar.gz bcm5719-llvm-573ba3499ea4a18838e0d020483d927cc3146580.zip | |
[sanitizer] Disable ForEachMappedRegion on Android.
It needs interface that is missing from the NDK, and it is not used on Android anyway.
llvm-svn: 187407
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index ca590bf9be3..57aae1ade2b 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -639,6 +639,7 @@ bool LibraryNameIs(const char *full_name, const char *base_name) { return (name[base_name_length] == '-' || name[base_name_length] == '.'); } +#if !SANITIZER_ANDROID // Call cb for each region mapped by map. void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)) { typedef ElfW(Phdr) Elf_Phdr; @@ -674,6 +675,7 @@ void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)) { } } } +#endif } // namespace __sanitizer |

