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

References

tools/clang/lib/CodeGen/CGDecl.cpp
  326       GV->setConstant(false);
  328       EmitCXXGuardedInit(D, GV, /*PerformInit*/true);
  330     return GV;
  337   if (GV->getType()->getElementType() != Init->getType()) {
  338     llvm::GlobalVariable *OldGV = GV;
  340     GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
  346     GV->setVisibility(OldGV->getVisibility());
  347     GV->setDSOLocal(OldGV->isDSOLocal());
  348     GV->setComdat(OldGV->getComdat());
  351     GV->takeName(OldGV);
  355     llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
  362   GV->setConstant(CGM.isTypeConstant(D.getType(), true));
  363   GV->setInitializer(Init);
  365   emitter.finalize(GV);
  371     EmitCXXGuardedInit(D, GV, /*PerformInit*/false);
  374   return GV;