Skip to content

Commit 09c4e96

Browse files
committed
get_host_cpu_{name,features} were added in LLVM 7.
1 parent 0f30c2f commit 09c4e96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/all/test_object_file.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use self::inkwell::types::IntType;
99
use self::inkwell::values::BasicValue;
1010
use self::inkwell::OptimizationLevel;
1111

12-
#[llvm_versions(4.0..=latest)]
12+
#[llvm_versions(7.0..=latest)]
1313
fn get_host_cpu_name() -> String {
1414
TargetMachine::get_host_cpu_name().to_string()
1515
}
16-
#[llvm_versions(4.0..=latest)]
16+
#[llvm_versions(7.0..=latest)]
1717
fn get_host_cpu_features() -> String {
1818
TargetMachine::get_host_cpu_features().to_string()
1919
}
@@ -31,11 +31,11 @@ fn apply_target_to_module<'ctx>(target_machine: &TargetMachine, module: &Module)
3131
module.set_data_layout(&target_machine.get_target_data().get_data_layout());
3232
}
3333

34-
#[llvm_versions(3.6..4.0)]
34+
#[llvm_versions(3.6..7.0)]
3535
fn get_host_cpu_name() -> String {
3636
"".to_string()
3737
}
38-
#[llvm_versions(3.6..4.0)]
38+
#[llvm_versions(3.6..7.0)]
3939
fn get_host_cpu_features() -> String {
4040
"".to_string()
4141
}

0 commit comments

Comments
 (0)