LLVM  14.0.0git
AddressSanitizerOptions.h
Go to the documentation of this file.
1 //===--------- Definition of the AddressSanitizer options -------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 // This file defines data types used to set Address Sanitizer options.
9 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_ADDRESSSANITIZEROPTIONS_H
11 #define LLVM_TRANSFORMS_INSTRUMENTATION_ADDRESSSANITIZEROPTIONS_H
12 
13 namespace llvm {
14 
15 /// Types of ASan module destructors supported
16 enum class AsanDtorKind {
17  None, ///< Do not emit any destructors for ASan
18  Global, ///< Append to llvm.global_dtors
19  Invalid, ///< Not a valid destructor Kind.
20  // TODO(dliew): Add more more kinds.
21 };
22 
23 /// Mode of ASan detect stack use after return
25  Never, ///< Never detect stack use after return.
26  Runtime, ///< Detect stack use after return if runtime flag is enabled
27  ///< (ASAN_OPTIONS=detect_stack_use_after_return=1)
28  Always, ///< Always detect stack use after return.
29  Invalid, ///< Not a valid detect mode.
30 };
31 
32 } // namespace llvm
33 
34 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::AsanDetectStackUseAfterReturnMode::Runtime
@ Runtime
Detect stack use after return if runtime flag is enabled (ASAN_OPTIONS=detect_stack_use_after_return=...
llvm::AsanDtorKind::None
@ None
Do not emit any destructors for ASan.
llvm::AsanDetectStackUseAfterReturnMode::Always
@ Always
Always detect stack use after return.
llvm::AsanDetectStackUseAfterReturnMode
AsanDetectStackUseAfterReturnMode
Mode of ASan detect stack use after return.
Definition: AddressSanitizerOptions.h:24
llvm::AsanDetectStackUseAfterReturnMode::Never
@ Never
Never detect stack use after return.
llvm::AsanDtorKind
AsanDtorKind
Types of ASan module destructors supported.
Definition: AddressSanitizerOptions.h:16
llvm::AsanDtorKind::Global
@ Global
Append to llvm.global_dtors.
llvm::AsanDetectStackUseAfterReturnMode::Invalid
@ Invalid
Not a valid detect mode.
llvm::AsanDtorKind::Invalid
@ Invalid
Not a valid destructor Kind.