mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Remove a few getSubtarget calls in AArch64 pass manager initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b386bfcd2
commit
1ed01c9439
@ -253,7 +253,7 @@ bool AArch64PassConfig::addInstSelector() {
|
||||
|
||||
// For ELF, cleanup any local-dynamic TLS accesses (i.e. combine as many
|
||||
// references to _TLS_MODULE_BASE_ as possible.
|
||||
if (TM->getSubtarget<AArch64Subtarget>().isTargetELF() &&
|
||||
if (Triple(TM->getTargetTriple()).isOSBinFormatELF() &&
|
||||
getOptLevel() != CodeGenOpt::None)
|
||||
addPass(createAArch64CleanupLocalDynamicTLSPass());
|
||||
|
||||
@ -311,6 +311,6 @@ void AArch64PassConfig::addPreEmitPass() {
|
||||
// range of their destination.
|
||||
addPass(createAArch64BranchRelaxation());
|
||||
if (TM->getOptLevel() != CodeGenOpt::None && EnableCollectLOH &&
|
||||
TM->getSubtarget<AArch64Subtarget>().isTargetMachO())
|
||||
Triple(TM->getTargetTriple()).isOSBinFormatMachO())
|
||||
addPass(createAArch64CollectLOHPass());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user