From 261a91519d57590283b250ea9dc1d924b01d4dd6 Mon Sep 17 00:00:00 2001 From: Yuki OKUSHI Date: Fri, 29 Mar 2019 06:44:31 +0900 Subject: Use platform dependent mcount function --- src/test/codegen/instrument-mcount.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/codegen/instrument-mcount.rs (limited to 'src/test/codegen') diff --git a/src/test/codegen/instrument-mcount.rs b/src/test/codegen/instrument-mcount.rs new file mode 100644 index 00000000000..bd01556d986 --- /dev/null +++ b/src/test/codegen/instrument-mcount.rs @@ -0,0 +1,7 @@ +// ignore-tidy-linelength +// compile-flags: -Z instrument-mcount + +#![crate_type = "lib"] + +// CHECK: attributes #{{.*}} "instrument-function-entry-inlined"="{{_*}}mcount" "no-frame-pointer-elim"="true" +pub fn foo() {} -- cgit 1.4.1-3-g733a5 From aec518addd7ab4624ccd57ea143395483dfc690a Mon Sep 17 00:00:00 2001 From: Yuki OKUSHI Date: Sun, 31 Mar 2019 07:13:59 +0900 Subject: Fix test --- src/test/codegen/instrument-mcount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/instrument-mcount.rs b/src/test/codegen/instrument-mcount.rs index bd01556d986..c72d09f7a03 100644 --- a/src/test/codegen/instrument-mcount.rs +++ b/src/test/codegen/instrument-mcount.rs @@ -3,5 +3,5 @@ #![crate_type = "lib"] -// CHECK: attributes #{{.*}} "instrument-function-entry-inlined"="{{_*}}mcount" "no-frame-pointer-elim"="true" +// CHECK: attributes #{{.*}} "instrument-function-entry-inlined"="{{.*}}mcount{{.*}}" "no-frame-pointer-elim"="true" pub fn foo() {} -- cgit 1.4.1-3-g733a5