[clang] [clang][ARM] disable frame pointers by default for bare metal ARM targets (PR #117140)

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 08:26:09 PST 2024


================
@@ -151,6 +152,10 @@ static bool useFramePointerForTargetByDefault(const llvm::opt::ArgList &Args,
     }
   }
 
+  if (toolchains::isARMBareMetal(Triple)) {
+    return false;
+  }
----------------
nickdesaulniers wrote:

https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

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


More information about the cfe-commits mailing list