Lines Matching refs:VTable

929   llvm::GlobalVariable *VTable =
933 VTable->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
942 VTable->hasLocalLinkage());
943 components.finishAndSetAsInitializer(VTable);
947 assert(!VTable->isDeclaration() && "Shouldn't set properties on declaration");
948 CGM.setGVProperties(VTable, RD);
950 CGM.EmitVTableTypeMetadata(RD, VTable, *VTLayout.get());
953 RemoveHwasanMetadata(VTable);
954 if (!VTable->isDSOLocal())
955 GenerateRelativeVTableAlias(VTable, OutName);
958 return VTable;
979 // If the VTable is not dso_local, then we will not be able to indicate that
980 // the VTable does not need a relocation and move into rodata. A frequent
985 void CodeGenVTables::GenerateRelativeVTableAlias(llvm::GlobalVariable *VTable,
989 assert(!VTable->isDSOLocal() && "This should be called only if the vtable is "
995 if (VTable->hasAvailableExternallyLinkage())
1002 VTable->setName(AliasName + ".local");
1004 auto Linkage = VTable->getLinkage();
1010 VTableAlias = llvm::GlobalAlias::create(VTable->getValueType(),
1011 VTable->getAddressSpace(), Linkage,
1014 assert(VTableAlias->getValueType() == VTable->getValueType());
1017 VTableAlias->setVisibility(VTable->getVisibility());
1018 VTableAlias->setUnnamedAddr(VTable->getUnnamedAddr());
1021 if (!VTable->hasComdat()) {
1026 VTable->setLinkage(llvm::GlobalValue::PrivateLinkage);
1029 VTable->setVisibility(llvm::GlobalValue::HiddenVisibility);
1032 VTableAlias->setAliasee(VTable);
1164 assert(RD->isDynamicClass() && "Non-dynamic classes have no VTable.");
1306 llvm::GlobalVariable *VTable,
1343 AddVTableTypeMetadata(VTable, ComponentWidth * AP.Offset, AP.Base);
1356 VTable->addTypeMetadata((ComponentWidth * I).getQuantity(), MD);
1366 VTable->setVCallVisibilityMetadata(TypeVis);