Lines Matching defs:Linkage
253 unsigned Linkage, Visibility, DLLStorageClass;
257 if (ParseOptionalLinkage(Linkage, HasLinkage) ||
262 ParseGlobal("", SMLoc(), Linkage, HasLinkage, Visibility,
454 unsigned Linkage, Visibility, DLLStorageClass;
457 if (ParseOptionalLinkage(Linkage, HasLinkage) ||
465 return ParseGlobal(Name, NameLoc, Linkage, HasLinkage, Visibility,
467 return ParseAlias(Name, NameLoc, Linkage, Visibility, DLLStorageClass, TLM,
482 unsigned Linkage, Visibility, DLLStorageClass;
486 ParseOptionalLinkage(Linkage, HasLinkage) ||
494 return ParseGlobal(Name, NameLoc, Linkage, HasLinkage, Visibility,
497 return ParseAlias(Name, NameLoc, Linkage, Visibility, DLLStorageClass, TLM,
672 GlobalValue::LinkageTypes Linkage = (GlobalValue::LinkageTypes) L;
674 if(!GlobalAlias::isValidLinkage(Linkage))
675 return Error(NameLoc, "invalid linkage type for alias");
679 "symbol with local linkage must have default visibility");
736 GlobalAlias::create(Ty, AddrSpace, (GlobalValue::LinkageTypes)Linkage,
781 unsigned Linkage, bool HasLinkage,
785 if (!isValidVisibilityForLinkage(Visibility, Linkage))
787 "symbol with local linkage must have default visibility");
803 // If the linkage is specified and is external, then no initializer is
806 if (!HasLinkage || (Linkage != GlobalValue::ExternalWeakLinkage &&
807 Linkage != GlobalValue::ExternalLinkage)) {
855 GV->setLinkage((GlobalValue::LinkageTypes)Linkage);
4327 // Parse the linkage.
4329 unsigned Linkage;
4337 if (ParseOptionalLinkage(Linkage) ||
4345 // Verify that the linkage is ok.
4346 switch ((GlobalValue::LinkageTypes)Linkage) {
4351 return Error(LinkageLoc, "invalid linkage for function definition");
4361 return Error(LinkageLoc, "invalid linkage for function declaration");
4365 return Error(LinkageLoc, "invalid function linkage type");
4368 if (!isValidVisibilityForLinkage(Visibility, Linkage))
4370 "symbol with local linkage must have default visibility");
4514 Fn->setLinkage((GlobalValue::LinkageTypes)Linkage);