Rename LangOptions members for address sanitizer and thread sanitizer from
*Sanitizer to Sanitize* in preparation for later patches. llvm-svn: 167405
This commit is contained in:
@@ -103,7 +103,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
|
||||
createCUDARuntime();
|
||||
|
||||
// Enable TBAA unless it's suppressed. ThreadSanitizer needs TBAA even at O0.
|
||||
if (LangOpts.ThreadSanitizer ||
|
||||
if (LangOpts.SanitizeThread ||
|
||||
(!CodeGenOpts.RelaxedAliasing && CodeGenOpts.OptimizationLevel > 0))
|
||||
TBAA = new CodeGenTBAA(Context, VMContext, CodeGenOpts, getLangOpts(),
|
||||
ABI.getMangleContext());
|
||||
@@ -598,7 +598,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
|
||||
else if (LangOpts.getStackProtector() == LangOptions::SSPReq)
|
||||
F->addFnAttr(llvm::Attributes::StackProtectReq);
|
||||
|
||||
if (LangOpts.AddressSanitizer) {
|
||||
if (LangOpts.SanitizeAddress) {
|
||||
// When AddressSanitizer is enabled, set AddressSafety attribute
|
||||
// unless __attribute__((no_address_safety_analysis)) is used.
|
||||
if (!D->hasAttr<NoAddressSafetyAnalysisAttr>())
|
||||
@@ -1739,7 +1739,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
|
||||
|
||||
// If we are compiling with ASan, add metadata indicating dynamically
|
||||
// initialized globals.
|
||||
if (LangOpts.AddressSanitizer && NeedsGlobalCtor) {
|
||||
if (LangOpts.SanitizeAddress && NeedsGlobalCtor) {
|
||||
llvm::Module &M = getModule();
|
||||
|
||||
llvm::NamedMDNode *DynamicInitializers =
|
||||
|
||||
Reference in New Issue
Block a user