mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
ARM64: disable generation of .loh directives outside MachO.
Part of PR19455. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -165,7 +165,8 @@ bool ARM64PassConfig::addPreEmitPass() {
|
||||
// Relax conditional branch instructions if they're otherwise out of
|
||||
// range of their destination.
|
||||
addPass(createARM64BranchRelaxation());
|
||||
if (TM->getOptLevel() != CodeGenOpt::None && EnableCollectLOH)
|
||||
if (TM->getOptLevel() != CodeGenOpt::None && EnableCollectLOH &&
|
||||
TM->getSubtarget<ARM64Subtarget>().isTargetMachO())
|
||||
addPass(createARM64CollectLOHPass());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user