rust/src/test/codegen/force-frame-pointers.rs
Fangrui Song b40dc30a3e Use function attribute "frame-pointer" instead of "no-frame-pointer-elim"
LLVM 8 (D56351) introduced "frame-pointer". In LLVM 10 (D71863),
"no-frame-pointer-elim"/"no-frame-pointer-elim-non-leaf" will be
ignored.
2019-12-30 23:16:02 -08:00

8 lines
183 B
Rust

// min-llvm-version 8.0
// compile-flags: -C no-prepopulate-passes -C force-frame-pointers=y
#![crate_type="lib"]
// CHECK: attributes #{{.*}} "frame-pointer"="all"
pub fn foo() {}