codegen_llvm: Simplify logic for relaxing PIC into PIE
This commit is contained in:
parent
0452725583
commit
76d85de223
6 changed files with 22 additions and 36 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue