diff options
Diffstat (limited to 'llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h')
-rw-r--r-- | llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h b/llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h index 68b47320f650..2e4f3338030a 100644 --- a/llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h +++ b/llvm/include/llvm/Transforms/Instrumentation/HWAddressSanitizer.h @@ -11,8 +11,8 @@ // legacy HWAddressSanitizer pass to use the new PassManager infrastructure. // //===----------------------------------------------------------------------===// -#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_HWADDRESSSANITIZERPASS_H -#define LLVM_TRANSFORMS_INSTRUMENTATION_HWADDRESSSANITIZERPASS_H +#ifndef LLVM_TRANSFORMS_INSTRUMENTATION_HWADDRESSSANITIZER_H +#define LLVM_TRANSFORMS_INSTRUMENTATION_HWADDRESSSANITIZER_H #include "llvm/IR/Function.h" #include "llvm/IR/PassManager.h" @@ -25,17 +25,21 @@ namespace llvm { class HWAddressSanitizerPass : public PassInfoMixin<HWAddressSanitizerPass> { public: explicit HWAddressSanitizerPass(bool CompileKernel = false, - bool Recover = false); + bool Recover = false, + bool DisableOptimization = false); PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); static bool isRequired() { return true; } private: bool CompileKernel; bool Recover; + bool DisableOptimization; }; -FunctionPass *createHWAddressSanitizerLegacyPassPass(bool CompileKernel = false, - bool Recover = false); +FunctionPass * +createHWAddressSanitizerLegacyPassPass(bool CompileKernel = false, + bool Recover = false, + bool DisableOptimization = false); namespace HWASanAccessInfo { |