forked from OSchip/llvm-project
[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:
parent
1f0b1027f1
commit
e775a3ee42
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue