File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -357,8 +357,6 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
357357
358358 Manager.registerPass (
359359 std::make_unique<VeneerElimination>(PrintVeneerElimination));
360-
361- Manager.registerPass (std::make_unique<ADRRelaxationPass>());
362360 }
363361
364362 if (BC.isRISCV ()) {
@@ -492,6 +490,8 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
492490 Manager.registerPass (std::make_unique<ReorderData>());
493491
494492 if (BC.isAArch64 ()) {
493+ Manager.registerPass (std::make_unique<ADRRelaxationPass>());
494+
495495 // Tighten branches according to offset differences between branch and
496496 // targets. No extra instructions after this pass, otherwise we may have
497497 // relocations out of range and crash during linking.
You can’t perform that action at this time.
0 commit comments