about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDevJPM <jean-pierre.muench@web.de>2020-11-07 23:36:00 +0100
committerDevJPM <jean-pierre.muench@web.de>2020-11-12 14:39:47 +0100
commit8236830209ca4a8cdf3a538f2cce40162ff31fc5 (patch)
tree19ac234158b9f355d119f4c1f7c5b5de033d5802 /compiler/rustc_codegen_llvm/src
parentb51bcc72d9fce469ccdcd75676d8bd35f41e5614 (diff)
downloadrust-8236830209ca4a8cdf3a538f2cce40162ff31fc5.tar.gz
rust-8236830209ca4a8cdf3a538f2cce40162ff31fc5.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index 881b6bcb684..8dd40308075 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -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-", "-")
 }