[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


================
@@ -28,6 +28,24 @@
 using namespace clang;
 using namespace CodeGen;
 
+/// Return the abstract pointer authentication schema for a pointer to the given
+/// function type.
+CGPointerAuthInfo CodeGenModule::getFunctionPointerAuthInfo(QualType T) {
+  auto &Schema = getCodeGenOpts().PointerAuth.FunctionPointers;
----------------
kovdan01 wrote:

```suggestion
  const auto &Schema = getCodeGenOpts().PointerAuth.FunctionPointers;
```

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


More information about the llvm-branch-commits mailing list