[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
This commit is contained in:
Evgeniy Stepanov 2013-07-30 08:39:16 +00:00
parent c02da467f4
commit 573ba3499e
1 changed files with 2 additions and 0 deletions

View File

@ -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