diff options
author | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-06-13 12:12:31 -0700 |
---|---|---|
committer | Mitch Phillips <31459023+hctim@users.noreply.github.com> | 2022-06-13 12:23:27 -0700 |
commit | 77475ffd22418ca7249f5457dddba15ab7cda0cc (patch) | |
tree | 443569eea293c3e3583937f74b9a1b802bd79732 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 0539b456b7889f9958c07a3c85f9e87bb227c355 (diff) | |
download | llvm-77475ffd22418ca7249f5457dddba15ab7cda0cc.zip llvm-77475ffd22418ca7249f5457dddba15ab7cda0cc.tar.gz llvm-77475ffd22418ca7249f5457dddba15ab7cda0cc.tar.bz2 |
Reland "Add sanitizer metadata attributes to clang IR gen."
RE-LAND (reverts a revert):
This reverts commit 8e1f47b596b28fbc88cf32e8f46eb2fecb145fb2.
This patch adds generation of sanitizer metadata attributes (which were
added in D126100) to the clang frontend.
We still currently generate the llvm.asan.globals that's consumed by
the IR pass, but the plan is to eventually migrate off of that onto
purely debuginfo and these IR attributes.
Reviewed By: vitalybuka, kstoimenov
Differential Revision: https://reviews.llvm.org/D126929
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 5097ef0..779d94a 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1314,8 +1314,9 @@ public: bool isInNoSanitizeList(SanitizerMask Kind, llvm::Function *Fn, SourceLocation Loc) const; - bool isInNoSanitizeList(llvm::GlobalVariable *GV, SourceLocation Loc, - QualType Ty, StringRef Category = StringRef()) const; + bool isInNoSanitizeList(SanitizerMask Kind, llvm::GlobalVariable *GV, + SourceLocation Loc, QualType Ty, + StringRef Category = StringRef()) const; /// Imbue XRay attributes to a function, applying the always/never attribute /// lists in the process. Returns true if we did imbue attributes this way, |