diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2019-04-09 00:25:59 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2019-04-09 00:25:59 +0000 |
commit | df57979ba7b7edb324afc17baafa9e2e27a9563a (patch) | |
tree | da7d710fd5b2cb0edcfe34fc2272f35ca7af4e15 /llvm/lib/Transforms | |
parent | 6c11a31bce1b3fc4909f390aa86a18072557eb9f (diff) | |
download | bcm5719-llvm-df57979ba7b7edb324afc17baafa9e2e27a9563a.tar.gz bcm5719-llvm-df57979ba7b7edb324afc17baafa9e2e27a9563a.zip |
hwasan: Enable -hwasan-allow-ifunc by default.
It's been on in Android for a while without causing problems, so it's time
to make it the default and remove the flag.
Differential Revision: https://reviews.llvm.org/D60355
llvm-svn: 357960
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index 6ecbd239f5b..71eaf4645cf 100644 --- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -160,10 +160,6 @@ static cl::opt<bool> ClInlineAllChecks("hwasan-inline-all-checks", cl::desc("inline all checks"), cl::Hidden, cl::init(false)); -static cl::opt<bool> ClAllowIfunc("hwasan-allow-ifunc", - cl::desc("allow the use of ifunc"), - cl::Hidden, cl::init(false)); - namespace { /// An instrumentation pass implementing detection of addressability bugs @@ -836,7 +832,7 @@ Value *HWAddressSanitizer::emitPrologue(IRBuilder<> &IRB, if (!Mapping.InTls) return getDynamicShadowNonTls(IRB); - if (ClAllowIfunc && !WithFrameRecord && TargetTriple.isAndroid()) + if (!WithFrameRecord && TargetTriple.isAndroid()) return getDynamicShadowIfunc(IRB); Value *SlotPtr = getHwasanThreadSlotPtr(IRB, IntptrTy); |