diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-07-22 13:39:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-22 13:39:23 +0200 |
| commit | 90d6d3327d7d40f1f0c8e524c5e40f658070c90f (patch) | |
| tree | 1fcb663084e02469539b54d979b88994fb7946c7 /src/test/codegen | |
| parent | 8dba89823ac4994837b632fe63ce582a60addcd6 (diff) | |
| parent | d56c02d7e9d2ad9b563ad3695c65b976f1099ec7 (diff) | |
| download | rust-90d6d3327d7d40f1f0c8e524c5e40f658070c90f.tar.gz rust-90d6d3327d7d40f1f0c8e524c5e40f658070c90f.zip | |
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
Allow combining -Cprofile-generate and -Cpanic=unwind when targeting MSVC. The LLVM limitation that previously prevented this has been fixed in LLVM 9 which is older than the oldest LLVM version we currently support. Fixes https://github.com/rust-lang/rust/issues/61002. r? ``@nagisa`` (or anyone else from ``@rust-lang/wg-llvm)``
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/pgo-instrumentation.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/codegen/pgo-instrumentation.rs b/src/test/codegen/pgo-instrumentation.rs index c085f3c829e..05c2d2fc0d8 100644 --- a/src/test/codegen/pgo-instrumentation.rs +++ b/src/test/codegen/pgo-instrumentation.rs @@ -1,8 +1,7 @@ // Test that `-Cprofile-generate` creates expected instrumentation artifacts in LLVM IR. -// Compiling with `-Cpanic=abort` because PGO+unwinding isn't supported on all platforms. // needs-profiler-support -// compile-flags: -Cprofile-generate -Ccodegen-units=1 -Cpanic=abort +// compile-flags: -Cprofile-generate -Ccodegen-units=1 // CHECK: @__llvm_profile_raw_version = // CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global |
