@@ -55,21 +55,6 @@ CodeGenModule::getPointerAuthOtherDiscriminator(const PointerAuthSchema &Schema,
55
55
llvm_unreachable (" bad discrimination kind" );
56
56
}
57
57
58
- uint16_t CodeGen::getPointerAuthTypeDiscriminator (CodeGenModule &CGM,
59
- QualType FunctionType) {
60
- return CGM.getContext ().getPointerAuthTypeDiscriminator (FunctionType);
61
- }
62
-
63
- // / Compute an ABI-stable hash of the given string.
64
- uint64_t CodeGen::computeStableStringHash (StringRef string) {
65
- return clang::getStableStringHash (string);
66
- }
67
-
68
- uint16_t CodeGen::getPointerAuthDeclDiscriminator (CodeGenModule &CGM,
69
- GlobalDecl Declaration) {
70
- return CGM.getPointerAuthDeclDiscriminator (Declaration);
71
- }
72
-
73
58
CGPointerAuthInfo CodeGenModule::EmitPointerAuthInfo (const RecordDecl *RD) {
74
59
assert (RD && " null RecordDecl passed" );
75
60
auto *Attr = RD->getAttr <PointerAuthStructAttr>();
@@ -702,15 +687,6 @@ llvm::Constant *CodeGenModule::getConstantSignedPointer(
702
687
OtherDiscriminator);
703
688
}
704
689
705
- llvm::Constant *
706
- CodeGen::getConstantSignedPointer (CodeGenModule &CGM,
707
- llvm::Constant *pointer, unsigned key,
708
- llvm::Constant *storageAddress,
709
- llvm::ConstantInt *otherDiscriminator) {
710
- return CGM.getConstantSignedPointer (pointer, key, storageAddress,
711
- otherDiscriminator);
712
- }
713
-
714
690
void CodeGenModule::destroyConstantSignedPointerCaches () {
715
691
destroyCache<ByConstantCacheTy>(ConstantSignedPointersByConstant);
716
692
destroyCache<ByDeclCacheTy>(ConstantSignedPointersByDecl);
0 commit comments