#include "SanitizerMetadata.h"
#include "CodeGenModule.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Type.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Constants.h"
usingnamespaceclang;
usingnamespaceCodeGen;
SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : … { … }
static bool isAsanHwasanOrMemTag(const SanitizerSet &SS) { … }
SanitizerMask expandKernelSanitizerMasks(SanitizerMask Mask) { … }
void SanitizerMetadata::reportGlobal(llvm::GlobalVariable *GV,
SourceLocation Loc, StringRef Name,
QualType Ty,
SanitizerMask NoSanitizeAttrMask,
bool IsDynInit) { … }
void SanitizerMetadata::reportGlobal(llvm::GlobalVariable *GV, const VarDecl &D,
bool IsDynInit) { … }
void SanitizerMetadata::disableSanitizerForGlobal(llvm::GlobalVariable *GV) { … }