[llvm] r227531 - Remove a few getSubtarget calls in AArch64 pass manager initialization.
Eric Christopher
echristo at gmail.com
Thu Jan 29 17:10:26 PST 2015
Author: echristo
Date: Thu Jan 29 19:10:26 2015
New Revision: 227531
URL: http://llvm.org/viewvc/llvm-project?rev=227531&view=rev
Log:
Remove a few getSubtarget calls in AArch64 pass manager initialization.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp?rev=227531&r1=227530&r2=227531&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64TargetMachine.cpp Thu Jan 29 19:10:26 2015
@@ -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());
}
More information about the llvm-commits
mailing list