================
@@ -3291,6 +3291,39 @@ void Darwin::addClangTargetOptions(
     if (!RequiresSubdirectorySearch)
       CC1Args.push_back("-fno-modulemap-allow-subdirectory-search");
   }
+
+  if (getTriple().isArm64e()) {
+    auto EnsureDefaultPtrauthFlag = [&](OptSpecifier Pos, OptSpecifier Neg) {
----------------
ojhunt wrote:

Does hasFlag(..) handle `-ffoo -fno-foo` correctly? I've assumed that it does 
not?

The reason for the weird push_back setup is because the verbose 
push_back("-ffoo") has always seemed error prone and difficult to maintain, and 
given these are a series of identically structured args it seemed doing the 
look up programmatically was better anyway?

https://github.com/llvm/llvm-project/pull/153722
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to