================
@@ -8760,13 +8760,23 @@ llvm::Metadata 
*CodeGenModule::CreateMetadataIdentifierImpl(
   return InternalId;
 }
 
+llvm::Metadata *
+CodeGenModule::CreateMetadataIdentifierForFnType(QualType T,
+                                                 bool GeneralizePointers) {
+  assert(T->isFunctionType());
+  T = GeneralizeFunctionType(getContext(), T, GeneralizePointers);
+  bool NormalizeIntegers = getCodeGenOpts().SanitizeCfiICallNormalizeIntegers;
+  if (GeneralizePointers)
+    return CreateMetadataIdentifierImpl(T, GeneralizedMetadataIdMap,
+                                        ".generalized", /*ForceString=*/false,
+                                        NormalizeIntegers);
+  return CreateMetadataIdentifierImpl(T, CfiICallMetadataIdMap, "",
+                                      /*ForceString=*/false, 
NormalizeIntegers);
+}
+
 llvm::Metadata *CodeGenModule::CreateMetadataIdentifierForFnType(QualType T) {
----------------
chandlerc wrote:

Done.

https://github.com/llvm/llvm-project/pull/242466
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to