[clang] [Clang] Emit type metadata on vtables when IRPGO instrumentation option is on. (PR #70841)
Teresa Johnson via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 3 11:26:03 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())
----------------
teresajohnson wrote:
Add a comment here and in the other file noting why it is added for IR instrumentation.
https://github.com/llvm/llvm-project/pull/70841
More information about the cfe-commits
mailing list