forked from OSchip/llvm-project
[sanitizer-coverage] Allow using KASAN instrumentation with sancov
llvm-svn: 304984
This commit is contained in:
parent
e1cac9171c
commit
dc5b95b553
|
@ -31,8 +31,8 @@ enum : SanitizerMask {
|
|||
NotAllowedWithTrap = Vptr,
|
||||
RequiresPIE = DataFlow,
|
||||
NeedsUnwindTables = Address | Thread | Memory | DataFlow,
|
||||
SupportsCoverage =
|
||||
Address | Memory | Leak | Undefined | Integer | Nullability | DataFlow,
|
||||
SupportsCoverage = Address | KernelAddress | Memory | Leak | Undefined |
|
||||
Integer | Nullability | DataFlow,
|
||||
RecoverableByDefault = Undefined | Integer | Nullability,
|
||||
Unrecoverable = Unreachable | Return,
|
||||
LegacyFsanitizeRecoverMask = Undefined | Integer,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
// CHECK-SANITIZE-COVERAGE-0: -fsanitize=address
|
||||
|
||||
// RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-coverage=func,trace-pc %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANITIZE-COVERAGE-FUNC
|
||||
// RUN: %clang -target x86_64-linux-gnu -fsanitize=kernel-address -fsanitize-coverage=func,trace-pc %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANITIZE-COVERAGE-FUNC
|
||||
// RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-coverage=func,trace-pc %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANITIZE-COVERAGE-FUNC
|
||||
// RUN: %clang -target x86_64-linux-gnu -fsanitize=leak -fsanitize-coverage=func,trace-pc %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANITIZE-COVERAGE-FUNC
|
||||
// RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-coverage=func,trace-pc %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SANITIZE-COVERAGE-FUNC
|
||||
|
|
Loading…
Reference in New Issue