reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGDecl.cpp
  382   llvm::Constant *addr = CGM.getOrCreateStaticVarDecl(D, Linkage);
  383   CharUnits alignment = getContext().getDeclAlign(&D);
  387   setAddrOfLocalVar(&D, Address(addr, alignment));
  392   if (D.getType()->isVariablyModifiedType())
  393     EmitVariablyModifiedType(D.getType());
  406                          D.hasAttr<CUDASharedAttr>();
  408   if (D.getInit() && !isCudaSharedVar)
  409     var = AddInitializerToStaticVarDecl(D, var);
  413   if (D.hasAttr<AnnotateAttr>())
  414     CGM.AddGlobalAnnotations(&D, var);
  416   if (auto *SA = D.getAttr<PragmaClangBSSSectionAttr>())
  418   if (auto *SA = D.getAttr<PragmaClangDataSectionAttr>())
  420   if (auto *SA = D.getAttr<PragmaClangRodataSectionAttr>())
  422   if (auto *SA = D.getAttr<PragmaClangRelroSectionAttr>())
  425   if (const SectionAttr *SA = D.getAttr<SectionAttr>())
  428   if (D.hasAttr<UsedAttr>())
  439     LocalDeclMap.find(&D)->second = Address(castedAddr, alignment);
  440   CGM.setStaticLocalDeclAddress(&D, castedAddr);
  442   CGM.getSanitizerMetadata()->reportGlobalToASan(var, D);
  448     DI->setLocation(D.getLocation());
  449     DI->EmitGlobalVariable(var, &D);