diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-03-31 19:19:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-31 19:19:48 +0200 |
| commit | 245a0afb52d18e906c1f042165559c57261e754a (patch) | |
| tree | 9879c6704431e09eb600b260895d22e44f7ebc41 /src/test/codegen | |
| parent | dffdd8f72880cd8119fc1a68028f9c02b115a9d2 (diff) | |
| parent | 7b26a43ae51fdb3c2ec7a3407e91add212c5754e (diff) | |
| download | rust-245a0afb52d18e906c1f042165559c57261e754a.tar.gz rust-245a0afb52d18e906c1f042165559c57261e754a.zip | |
Rollup merge of #59506 - JohnTitor:improve-mcount, r=nagisa
Use platform dependent mcount function close #59097 This pull-request is based on #57244 and [here](https://github.com/llvm-mirror/clang/search?q=MCountName&unscoped_MCountName). r? @nagisa
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/instrument-mcount.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/codegen/instrument-mcount.rs b/src/test/codegen/instrument-mcount.rs new file mode 100644 index 00000000000..c72d09f7a03 --- /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() {} |
