forked from OSchip/llvm-project
[NFC][compiler-rt][hwasan] Move shadow bound variables to hwasan.cpp
This way, other platforms can define these values. Differential Revision: https://reviews.llvm.org/D105744
This commit is contained in:
parent
d5c97f4bf0
commit
b270c3fbde
|
@ -50,6 +50,11 @@ bool hwasan_init_is_running;
|
|||
|
||||
int hwasan_report_count = 0;
|
||||
|
||||
uptr kLowShadowStart;
|
||||
uptr kLowShadowEnd;
|
||||
uptr kHighShadowStart;
|
||||
uptr kHighShadowEnd;
|
||||
|
||||
void Flags::SetDefaults() {
|
||||
#define HWASAN_FLAG(Type, Name, DefaultValue, Description) Name = DefaultValue;
|
||||
#include "hwasan_flags.inc"
|
||||
|
|
|
@ -69,10 +69,6 @@ static void ProtectGap(uptr addr, uptr size) {
|
|||
|
||||
uptr kLowMemStart;
|
||||
uptr kLowMemEnd;
|
||||
uptr kLowShadowEnd;
|
||||
uptr kLowShadowStart;
|
||||
uptr kHighShadowStart;
|
||||
uptr kHighShadowEnd;
|
||||
uptr kHighMemStart;
|
||||
uptr kHighMemEnd;
|
||||
|
||||
|
|
Loading…
Reference in New Issue