clang
19.0.0git
|
#include "/home/runner/work/llvm/llvm/repo/clang/lib/CodeGen/SanitizerMetadata.h"
Public Member Functions | |
SanitizerMetadata (CodeGenModule &CGM) | |
void | reportGlobal (llvm::GlobalVariable *GV, const VarDecl &D, bool IsDynInit=false) |
void | reportGlobal (llvm::GlobalVariable *GV, SourceLocation Loc, StringRef Name, QualType Ty={}, SanitizerMask NoSanitizeAttrMask={}, bool IsDynInit=false) |
void | disableSanitizerForGlobal (llvm::GlobalVariable *GV) |
Definition at line 32 of file SanitizerMetadata.h.
SanitizerMetadata::SanitizerMetadata | ( | CodeGenModule & | CGM | ) |
Definition at line 23 of file SanitizerMetadata.cpp.
void SanitizerMetadata::disableSanitizerForGlobal | ( | llvm::GlobalVariable * | GV | ) |
Definition at line 101 of file SanitizerMetadata.cpp.
References clang::XRayInstrKind::All, and reportGlobal().
Referenced by clang::CodeGen::CodeGenFunction::EmitCfiSlowPathCheck(), clang::CodeGen::CodeGenFunction::EmitCheck(), and clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
const VarDecl & | D, | ||
bool | IsDynInit = false |
||
) |
Definition at line 78 of file SanitizerMetadata.cpp.
References clang::XRayInstrKind::All, clang::CodeGen::CodeGenModule::getLangOpts(), clang::Decl::getLocation(), clang::ValueDecl::getType(), clang::Decl::hasAttr(), isAsanHwasanOrMemTag(), clang::NamedDecl::printQualifiedName(), clang::LangOptions::Sanitize, and clang::Decl::specific_attrs().
Referenced by disableSanitizerForGlobal(), and clang::CodeGen::CodeGenFunction::EmitStaticVarDecl().
void SanitizerMetadata::reportGlobal | ( | llvm::GlobalVariable * | GV, |
SourceLocation | Loc, | ||
StringRef | Name, | ||
QualType | Ty = {} , |
||
SanitizerMask | NoSanitizeAttrMask = {} , |
||
bool | IsDynInit = false |
||
) |
Definition at line 37 of file SanitizerMetadata.cpp.