@@ -52,6 +52,16 @@ llvm::ConstantInt *CodeGenModule::getPointerAuthOtherDiscriminator(
5252 llvm_unreachable (" bad discrimination kind" );
5353}
5454
55+ uint16_t CodeGen::getPointerAuthTypeDiscriminator (CodeGenModule &CGM,
56+ QualType FunctionType) {
57+ return CGM.getContext ().getPointerAuthTypeDiscriminator (FunctionType);
58+ }
59+
60+ uint16_t CodeGen::getPointerAuthDeclDiscriminator (CodeGenModule &CGM,
61+ GlobalDecl Declaration) {
62+ return CGM.getPointerAuthDeclDiscriminator (Declaration);
63+ }
64+
5565// / Return the "other" decl-specific discriminator for the given decl.
5666uint16_t
5767CodeGenModule::getPointerAuthDeclDiscriminator (GlobalDecl Declaration) {
@@ -587,6 +597,15 @@ llvm::Constant *CodeGenModule::getConstantSignedPointer(
587597 OtherDiscriminator);
588598}
589599
600+ llvm::Constant *
601+ CodeGen::getConstantSignedPointer (CodeGenModule &CGM,
602+ llvm::Constant *pointer, unsigned key,
603+ llvm::Constant *storageAddress,
604+ llvm::ConstantInt *otherDiscriminator) {
605+ return CGM.getConstantSignedPointer (pointer, key, storageAddress,
606+ otherDiscriminator);
607+ }
608+
590609void CodeGenModule::destroyConstantSignedPointerCaches () {
591610 destroyCache<ByConstantCacheTy>(ConstantSignedPointersByConstant);
592611 destroyCache<ByDeclCacheTy>(ConstantSignedPointersByDecl);
0 commit comments