Skip to content

Commit cbbed36

Browse files
Experimentally force non-leaf frame pointers
1 parent 58e967a commit cbbed36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_codegen_llvm/src/attributes.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ pub fn frame_pointer_type_attr<'ll>(cx: &CodegenCx<'ll, '_>) -> Option<&'ll Attr
112112
}
113113
let attr_value = match fp {
114114
FramePointer::Always => "all",
115-
FramePointer::NonLeaf => "non-leaf",
116-
FramePointer::MayOmit => return None,
115+
// TODO: a real impl instead of a shitty one-off hack
116+
FramePointer::NonLeaf | FramePointer::MayOmit => "non-leaf",
117+
// FramePointer::MayOmit => return None,
117118
};
118119
Some(llvm::CreateAttrStringValue(cx.llcx, "frame-pointer", attr_value))
119120
}

0 commit comments

Comments
 (0)