[llvm-branch-commits] [clang] [clang] Implement function pointer signing and authenticated function calls (PR #93906)

Daniil Kovalev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 7 01:42:12 PDT 2024


================
@@ -75,3 +93,36 @@ CodeGen::getConstantSignedPointer(CodeGenModule &CGM,
   return CGM.getConstantSignedPointer(pointer, key, storageAddress,
                                       otherDiscriminator);
 }
+
+/// If applicable, sign a given constant function pointer with the ABI rules for
+/// functionType.
+llvm::Constant *CodeGenModule::getFunctionPointer(llvm::Constant *pointer,
----------------
kovdan01 wrote:

`PascalCase` for variables in this function and all over the file - it's a new file, so IMHO there is no reason to stick with old naming conventions

https://github.com/llvm/llvm-project/pull/93906


More information about the llvm-branch-commits mailing list