clang
10.0.0git
|
#include "/work/www-prereleases/10.0.0/rc2/docsbuild/clang/lib/CodeGen/SanitizerMetadata.h"
Public Member Functions | |
SanitizerMetadata (CodeGenModule &CGM) | |
void | reportGlobalToASan (llvm::GlobalVariable *GV, const VarDecl &D, bool IsDynInit=false) |
void | reportGlobalToASan (llvm::GlobalVariable *GV, SourceLocation Loc, StringRef Name, QualType Ty, bool IsDynInit=false, bool IsBlacklisted=false) |
void | disableSanitizerForGlobal (llvm::GlobalVariable *GV) |
void | disableSanitizerForInstruction (llvm::Instruction *I) |
Definition at line 32 of file SanitizerMetadata.h.
SanitizerMetadata::SanitizerMetadata | ( | CodeGenModule & | CGM | ) |
Definition at line 22 of file SanitizerMetadata.cpp.
void SanitizerMetadata::disableSanitizerForGlobal | ( | llvm::GlobalVariable * | GV | ) |
Definition at line 79 of file SanitizerMetadata.cpp.
References clang::CodeGen::CodeGenModule::getLangOpts(), isAsanHwasanOrMemTag(), reportGlobalToASan(), and clang::LangOptions::Sanitize.
Referenced by clang::CodeGen::CodeGenFunction::EmitCfiSlowPathCheck(), clang::CodeGen::CodeGenFunction::EmitCheck(), and clang::CodeGen::CodeGenFunction::EmitCheckSourceLocation().
void SanitizerMetadata::disableSanitizerForInstruction | ( | llvm::Instruction * | I | ) |
Definition at line 86 of file SanitizerMetadata.cpp.
References clang::PresumedLoc::getColumn(), clang::CodeGen::CodeGenModule::getContext(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::CodeGen::CodeGenModule::getModule(), clang::SourceManager::getPresumedLoc(), clang::ASTContext::getSourceManager(), clang::PresumedLoc::isValid(), and None.
void SanitizerMetadata::reportGlobalToASan | ( | llvm::GlobalVariable * | GV, |
const VarDecl & | D, | ||
bool | IsDynInit = false |
||
) |
Definition at line 63 of file SanitizerMetadata.cpp.
References clang::CodeGen::CodeGenModule::getLangOpts(), clang::Decl::getLocation(), clang::ValueDecl::getType(), isAsanHwasanOrMemTag(), clang::NamedDecl::printQualifiedName(), clang::LangOptions::Sanitize, and clang::Decl::specific_attrs().
Referenced by disableSanitizerForGlobal(), and clang::CodeGen::CodeGenFunction::EmitStaticVarDecl().
void SanitizerMetadata::reportGlobalToASan | ( | llvm::GlobalVariable * | GV, |
SourceLocation | Loc, | ||
StringRef | Name, | ||
QualType | Ty, | ||
bool | IsDynInit = false , |
||
bool | IsBlacklisted = false |
||
) |
Definition at line 30 of file SanitizerMetadata.cpp.