reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
3415 if (D && !D->hasAttr<WeakAttr>()) 3415 if (D && !D->hasAttr<WeakAttr>()) 3420 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) 3420 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) 3420 if (D && !D->hasAttr<DLLImportAttr>() && !D->hasAttr<DLLExportAttr>()) 3423 if (LangOpts.OpenMP && !LangOpts.OpenMPSimd && D) 3424 getOpenMPRuntime().registerTargetGlobalVariable(D, Entry); 3437 if (D && lookupRepresentativeDecl(MangledName, OtherGD) && 3438 (D->getCanonicalDecl() != OtherGD.getCanonicalDecl().getDecl()) && 3441 DiagnosedConflictingDefinitions.insert(D).second) { 3442 getDiags().Report(D->getLocation(), diag::err_duplicate_mangled_name) 3459 auto AddrSpace = GetGlobalVarAddressSpace(D); 3493 if (D) { 3495 getOpenMPRuntime().registerTargetGlobalVariable(D, GV); 3499 GV->setConstant(isTypeConstant(D->getType(), false)); 3501 GV->setAlignment(getContext().getDeclAlign(D).getAsAlign()); 3503 setLinkageForGV(GV, D); 3505 if (D->getTLSKind()) { 3506 if (D->getTLSKind() == VarDecl::TLS_Dynamic) 3507 CXXThreadLocals.push_back(D); 3508 setTLSMode(GV, *D); 3511 setGVProperties(GV, D); 3515 if (getContext().isMSStaticDataMemberInlineDefinition(D)) { 3516 EmitGlobalVarDefinition(D); 3520 if (D->hasExternalStorage()) { 3521 if (const SectionAttr *SA = D->getAttr<SectionAttr>()) 3527 D->getLanguageLinkage() == CLanguageLinkage && 3528 D->getType().isConstant(Context) && 3529 isExternallyVisible(D->getLinkageAndVisibility().getLinkage())) 3536 D->getType().isConstQualified() && !GV->hasInitializer() && 3537 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { 3537 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { 3537 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { 3539 Context.getBaseElementType(D->getType())->getAsCXXRecordDecl(); 3543 const Expr *InitExpr = D->getAnyInitializer(InitDecl); 3558 GetAddrOfGlobalVar(D, InitType, IsForDefinition) 3577 D ? D->getType().getAddressSpace() 3577 D ? D->getType().getAddressSpace() 3586 getTargetCodeGenInfo().setTargetAttributes(D, GV, *this);