Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Linkage

522   GVALinkage Linkage = getContext().GetGVALinkageForFunction(D);
524 if (Linkage == GVA_Internal)
534 // definition somewhere else, so we can use available_externally linkage.
535 if (Linkage == GVA_C99Inline)
549 if (Linkage == GVA_CXXInline || Linkage == GVA_TemplateInstantiation)
554 // An explicit instantiation of a template has weak linkage, since
558 if (Linkage == GVA_ExplicitTemplateInstantiation)
563 // Otherwise, we have strong external linkage.
564 assert(Linkage == GVA_StrongExternal);
740 // separate linkage types for this.
1297 // linkage.
1545 // Set linkage and visibility in case we never see a definition.
1548 // Don't set internal linkage on declarations.
1577 llvm::GlobalValue::LinkageTypes Linkage) {
1595 Linkage, 0, Name);
1688 // Must have internal linkage and an ordinary name.
1698 // OK, this is an internal linkage entity inside an extern "C" linkage
1704 // If we have multiple internal linkage entities with the same name
1813 // Set the llvm linkage type as appropriate.
1814 llvm::GlobalValue::LinkageTypes Linkage =
1816 GV->setLinkage(Linkage);
1817 if (Linkage == llvm::GlobalVariable::CommonLinkage)
1847 GVALinkage Linkage = getContext().GetGVALinkageForVariable(D);
1848 if (Linkage == GVA_Internal)
1857 // all definitions should be the same and ODR linkage should be used.
1865 } else if (Linkage == GVA_TemplateInstantiation ||
1866 Linkage == GVA_ExplicitTemplateInstantiation)
1874 // Thread local vars aren't considered common linkage.
1879 // has internal linkage; all accesses should just be calls to the
1880 // Itanium-specified entry point, which has the normal linkage of the
2081 // We need to set linkage and visibility on the function before
2283 llvm::GlobalValue::LinkageTypes Linkage;
2286 Linkage = llvm::GlobalValue::InternalLinkage;
2289 // when using private linkage. It is not clear if this is a bug in ld
2291 Linkage = llvm::GlobalValue::LinkerPrivateLinkage;
2297 Linkage, C, ".str");
2425 llvm::GlobalValue::LinkageTypes Linkage;
2427 Linkage = llvm::GlobalValue::PrivateLinkage;
2431 new llvm::GlobalVariable(getModule(), C->getType(), isConstant, Linkage, C,
2799 // EmitLinkageSpec - Emit all declarations in a linkage spec.
2803 ErrorUnsupported(LSD, "linkage spec");
3007 /// as 'used', but has internal linkage, create an alias from the unmangled