1
Fork 0

Remove some minor checks for LLVM < 12

This commit is contained in:
Josh Stone 2021-11-05 10:26:16 -07:00
parent d22dd65835
commit 1d04577ee0
3 changed files with 6 additions and 15 deletions

View file

@ -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", "");