[flang-commits] [clang] [flang] [Flang][Clang] Add support for frame pointers in Flang Driver (PR #72146)

Radu Salavat via flang-commits flang-commits at lists.llvm.org
Mon Nov 27 03:15:28 PST 2023


================
@@ -49,6 +49,26 @@ class CodeGenOptionsBase {
 class CodeGenOptions : public CodeGenOptionsBase {
 
 public:
+  /// The type of frame pointer used
+  enum class FramePointerKind {
+    None,    // Omit all frame pointers.
+    NonLeaf, // Keep non-leaf frame pointers.
+    All,     // Keep all frame pointers.
+  };
+
+  static llvm::StringRef getFramePointerKindName(FramePointerKind Kind) {
+    switch (Kind) {
+    case FramePointerKind::None:
+      return "none";
+    case FramePointerKind::NonLeaf:
+      return "non-leaf";
+    case FramePointerKind::All:
+      return "all";
+    }
+
+    llvm_unreachable("invalid FramePointerKind");
+  };
+
----------------
Radu2k wrote:

Issue has been addressed

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


More information about the flang-commits mailing list