Skip to content

Commit 8236830

Browse files
committed
Removed an unused function now that LLVM 9 is the minimal supported version
The function was only used in LLVM 8 compatibility code and was found and flagged by dead code detection and now removed.
1 parent b51bcc7 commit 8236830

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ fn to_llvm_tls_model(tls_model: TlsModel) -> llvm::ThreadLocalMode {
100100
}
101101
}
102102

103-
fn strip_function_ptr_alignment(data_layout: String) -> String {
104-
// FIXME: Make this more general.
105-
data_layout.replace("-Fi8-", "-")
106-
}
107-
108103
fn strip_x86_address_spaces(data_layout: String) -> String {
109104
data_layout.replace("-p270:32:32-p271:32:32-p272:64:64-", "-")
110105
}

0 commit comments

Comments
 (0)