File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -609,13 +609,15 @@ bool PPCTargetInfo::initFeatureMap(
609609 // Privileged instructions are off by default.
610610 Features[" privileged" ] = false ;
611611
612- // The code generated by the -maix-small-local-[exec|dynamic]-tls option is
613- // turned off by default.
614- Features[" aix-small-local-exec-tls" ] = false ;
615- Features[" aix-small-local-dynamic-tls" ] = false ;
612+ if (getTriple ().isOSAIX ()) {
613+ // The code generated by the -maix-small-local-[exec|dynamic]-tls option is
614+ // turned off by default.
615+ Features[" aix-small-local-exec-tls" ] = false ;
616+ Features[" aix-small-local-dynamic-tls" ] = false ;
616617
617- // Turn off TLS model opt by default.
618- Features[" aix-shared-lib-tls-model-opt" ] = false ;
618+ // Turn off TLS model opt by default.
619+ Features[" aix-shared-lib-tls-model-opt" ] = false ;
620+ }
619621
620622 Features[" spe" ] = llvm::StringSwitch<bool >(CPU)
621623 .Case (" 8548" , true )
You can’t perform that action at this time.
0 commit comments