about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/tests.rs
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2022-04-21 13:29:45 +0100
committerPhilipp Krones <hello@philkrones.com>2022-06-14 14:50:51 +0200
commitdef3fd8e9224128ffdf4cb0a7f08306f757a059a (patch)
treedfd55346b3c64be7fa02a3f014b37edae44e0fb9 /compiler/rustc_interface/src/tests.rs
parentda895e7938e8d6f8d221fce2876d225bf58df865 (diff)
downloadrust-def3fd8e9224128ffdf4cb0a7f08306f757a059a.tar.gz
rust-def3fd8e9224128ffdf4cb0a7f08306f757a059a.zip
Add -Zvirtual-function-elimination flag
Adds the virtual-function-elimination unstable compiler flag and a check
that this flag is only used in combination with -Clto. LLVM can only
apply this optimization with fat LTO.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index 3747fb5eca0..30a29ed6ed3 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -797,6 +797,7 @@ fn test_debugging_options_tracking_hash() {
     tracked!(unleash_the_miri_inside_of_you, true);
     tracked!(use_ctors_section, Some(true));
     tracked!(verify_llvm_ir, true);
+    tracked!(virtual_function_elimination, true);
     tracked!(wasi_exec_model, Some(WasiExecModel::Reactor));
 
     macro_rules! tracked_no_crate_hash {