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.
This commit is contained in:
DevJPM 2020-11-07 23:36:00 +01:00
parent b51bcc72d9
commit 8236830209

View File

@ -100,11 +100,6 @@ fn to_llvm_tls_model(tls_model: TlsModel) -> llvm::ThreadLocalMode {
}
}
fn strip_function_ptr_alignment(data_layout: String) -> String {
// FIXME: Make this more general.
data_layout.replace("-Fi8-", "-")
}
fn strip_x86_address_spaces(data_layout: String) -> String {
data_layout.replace("-p270:32:32-p271:32:32-p272:64:64-", "-")
}