Skip to content

Commit 80a8029

Browse files
committed
Auto merge of rust-lang#115521 - workingjubilee:force-trunk-frame-pointers, r=<try>
[DO NOT MERGE] Experimentally force non-leaf frame pointers Continuing the experiment of rust-lang#114323 r? `@ghost`
2 parents 09cd00f + 2455c14 commit 80a8029

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_codegen_llvm/src/attributes.rs

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

0 commit comments

Comments
 (0)