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

References

lib/Linker/IRMover.cpp
  688   if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) {
  690   } else if (auto *SF = dyn_cast<Function>(SGV)) {
  694       NewGV = copyGlobalIndirectSymbolProto(cast<GlobalIndirectSymbol>(SGV));
  695     else if (SGV->getValueType()->isFunctionTy())
  697           Function::Create(cast<FunctionType>(TypeMap.get(SGV->getValueType())),
  698                            GlobalValue::ExternalLinkage, SGV->getName(), &DstM);
  701           DstM, TypeMap.get(SGV->getValueType()),
  703           /*init*/ nullptr, SGV->getName(),
  704           /*insertbefore*/ nullptr, SGV->getThreadLocalMode(),
  705           SGV->getType()->getAddressSpace());
  709     NewGV->setLinkage(SGV->getLinkage());
  710   else if (SGV->hasExternalWeakLinkage())
  715     if (isa<GlobalVariable>(SGV) || SGV->isDeclaration())
  715     if (isa<GlobalVariable>(SGV) || SGV->isDeclaration())
  716       NewGO->copyMetadata(cast<GlobalObject>(SGV), 0);