[clang] [Clang] Emit type metadata on vtables when IRPGO instrumentation option is on. (PR #70841)

Mingming Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 3 12:26:12 PDT 2023


================
@@ -1312,7 +1312,7 @@ llvm::GlobalObject::VCallVisibility CodeGenModule::GetVCallVisibilityLevel(
 void CodeGenModule::EmitVTableTypeMetadata(const CXXRecordDecl *RD,
                                            llvm::GlobalVariable *VTable,
                                            const VTableLayout &VTLayout) {
-  if (!getCodeGenOpts().LTOUnit)
+  if (!getCodeGenOpts().LTOUnit && !getCodeGenOpts().hasProfileIRInstr())
----------------
minglotus-6 wrote:

done.


https://github.com/llvm/llvm-project/pull/70841


More information about the cfe-commits mailing list