Remove some minor checks for LLVM < 12
This commit is contained in:
parent
d22dd65835
commit
1d04577ee0
3 changed files with 6 additions and 15 deletions
|
@ -134,9 +134,6 @@ pub unsafe fn create_module(
|
|||
let llmod = llvm::LLVMModuleCreateWithNameInContext(mod_name.as_ptr(), llcx);
|
||||
|
||||
let mut target_data_layout = sess.target.data_layout.clone();
|
||||
if llvm_util::get_version() < (12, 0, 0) && sess.target.arch == "powerpc64" {
|
||||
target_data_layout = target_data_layout.replace("-v256:256:256-v512:512:512", "");
|
||||
}
|
||||
if llvm_util::get_version() < (13, 0, 0) {
|
||||
if sess.target.arch == "powerpc64" {
|
||||
target_data_layout = target_data_layout.replace("-S128", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue