about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/llvm_util.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-04-23 21:10:01 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-04-26 11:18:48 +0300
commit76d85de22359d7a924b84dde6830650e92e44b89 (patch)
treee59a405edef738f846ab612c0a02d4baddbeb597 /src/librustc_codegen_llvm/llvm_util.rs
parent045272558309a7600cb4618db5a2c52384f1d14e (diff)
downloadrust-76d85de22359d7a924b84dde6830650e92e44b89.tar.gz
rust-76d85de22359d7a924b84dde6830650e92e44b89.zip
codegen_llvm: Simplify logic for relaxing PIC into PIE
Diffstat (limited to 'src/librustc_codegen_llvm/llvm_util.rs')
-rw-r--r--src/librustc_codegen_llvm/llvm_util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs
index 6f16b0fb79c..a36e95771e8 100644
--- a/src/librustc_codegen_llvm/llvm_util.rs
+++ b/src/librustc_codegen_llvm/llvm_util.rs
@@ -270,7 +270,7 @@ pub fn to_llvm_feature<'a>(sess: &Session, s: &'a str) -> &'a str {
 }
 
 pub fn target_features(sess: &Session) -> Vec<Symbol> {
-    let target_machine = create_informational_target_machine(sess, true);
+    let target_machine = create_informational_target_machine(sess);
     target_feature_whitelist(sess)
         .iter()
         .filter_map(|&(feature, gate)| {
@@ -322,7 +322,7 @@ pub fn print_passes() {
 
 pub(crate) fn print(req: PrintRequest, sess: &Session) {
     require_inited();
-    let tm = create_informational_target_machine(sess, true);
+    let tm = create_informational_target_machine(sess);
     unsafe {
         match req {
             PrintRequest::TargetCPUs => llvm::LLVMRustPrintTargetCPUs(tm),