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