File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1797,6 +1797,14 @@ void CodeGenModule::getDefaultFunctionAttributes(StringRef Name,
1797
1797
FuncAttrs.addAttribute (" stackrealign" );
1798
1798
if (CodeGenOpts.Backchain )
1799
1799
FuncAttrs.addAttribute (" backchain" );
1800
+ if (CodeGenOpts.PointerAuth .ReturnAddresses )
1801
+ FuncAttrs.addAttribute (" ptrauth-returns" );
1802
+ if (CodeGenOpts.PointerAuth .FunctionPointers )
1803
+ FuncAttrs.addAttribute (" ptrauth-calls" );
1804
+ if (CodeGenOpts.PointerAuth .IndirectGotos )
1805
+ FuncAttrs.addAttribute (" ptrauth-indirect-gotos" );
1806
+ if (CodeGenOpts.PointerAuth .AuthTraps )
1807
+ FuncAttrs.addAttribute (" ptrauth-auth-traps" );
1800
1808
if (CodeGenOpts.EnableSegmentedStacks )
1801
1809
FuncAttrs.addAttribute (" split-stack" );
1802
1810
You can’t perform that action at this time.
0 commit comments