Lines Matching defs:VTable

961   llvm::GlobalVariable *VTable =
965 VTable->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
974 VTable->hasLocalLinkage());
975 components.finishAndSetAsInitializer(VTable);
979 assert(!VTable->isDeclaration() && "Shouldn't set properties on declaration");
980 CGM.setGVProperties(VTable, RD);
982 CGM.EmitVTableTypeMetadata(RD, VTable, *VTLayout.get());
985 RemoveHwasanMetadata(VTable);
986 if (!VTable->isDSOLocal())
987 GenerateRelativeVTableAlias(VTable, OutName);
990 return VTable;
1011 // If the VTable is not dso_local, then we will not be able to indicate that
1012 // the VTable does not need a relocation and move into rodata. A frequent
1017 void CodeGenVTables::GenerateRelativeVTableAlias(llvm::GlobalVariable *VTable,
1021 assert(!VTable->isDSOLocal() && "This should be called only if the vtable is "
1027 if (VTable->hasAvailableExternallyLinkage())
1034 VTable->setName(AliasName + ".local");
1036 auto Linkage = VTable->getLinkage();
1042 VTableAlias = llvm::GlobalAlias::create(VTable->getValueType(),
1043 VTable->getAddressSpace(), Linkage,
1046 assert(VTableAlias->getValueType() == VTable->getValueType());
1049 VTableAlias->setVisibility(VTable->getVisibility());
1050 VTableAlias->setUnnamedAddr(VTable->getUnnamedAddr());
1053 if (!VTable->hasComdat()) {
1054 VTable->setLinkage(llvm::GlobalValue::InternalLinkage);
1064 VTable->setVisibility(llvm::GlobalValue::HiddenVisibility);
1067 VTableAlias->setAliasee(VTable);
1211 assert(RD->isDynamicClass() && "Non-dynamic classes have no VTable.");
1351 llvm::GlobalVariable *VTable,
1388 AddVTableTypeMetadata(VTable, ComponentWidth * AP.Offset, AP.Base);
1401 VTable->addTypeMetadata((ComponentWidth * I).getQuantity(), MD);
1411 VTable->setVCallVisibilityMetadata(TypeVis);