[hwasan] fix the build on Linux Ubuntu 14.04. We don't need __hwasan_shadow on Linux at all

llvm-svn: 341158
This commit is contained in:
Kostya Serebryany 2018-08-31 02:38:23 +00:00
parent 1f0b1027f1
commit e775a3ee42
1 changed files with 11 additions and 0 deletions

View File

@ -58,6 +58,7 @@ static uptr MapDynamicShadow(uptr shadow_size_bytes) {
} // namespace __hwasan
#if SANITIZER_ANDROID
extern "C" {
INTERFACE_ATTRIBUTE void __hwasan_shadow();
@ -124,3 +125,13 @@ uptr FindDynamicShadowStart(uptr shadow_size_bytes) {
}
} // namespace __hwasan
#else
namespace __hwasan {
uptr FindDynamicShadowStart(uptr shadow_size_bytes) {
return MapDynamicShadow(shadow_size_bytes);
}
} // namespace __hwasan
#
#endif // SANITIZER_ANDROID