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,
17971797 FuncAttrs.addAttribute (" stackrealign" );
17981798 if (CodeGenOpts.Backchain )
17991799 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" );
18001808 if (CodeGenOpts.EnableSegmentedStacks )
18011809 FuncAttrs.addAttribute (" split-stack" );
18021810
You can’t perform that action at this time.
0 commit comments