diff --git a/bolt/lib/Rewrite/MachORewriteInstance.cpp b/bolt/lib/Rewrite/MachORewriteInstance.cpp --- a/bolt/lib/Rewrite/MachORewriteInstance.cpp +++ b/bolt/lib/Rewrite/MachORewriteInstance.cpp @@ -606,10 +606,6 @@ } void MachORewriteInstance::adjustCommandLineOptions() { -//FIXME! Upstream change -// opts::CheckOverlappingElements = false; - if (!opts::AlignText.getNumOccurrences()) - opts::AlignText = BC->PageAlign; if (opts::Instrument.getNumOccurrences()) opts::ForcePatch = true; opts::JumpTables = JTS_MOVE; diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp --- a/bolt/lib/Rewrite/RewriteInstance.cpp +++ b/bolt/lib/Rewrite/RewriteInstance.cpp @@ -1778,7 +1778,7 @@ opts::UseOldText = false; } - if (!opts::AlignText.getNumOccurrences()) + if (opts::Hugify) opts::AlignText = BC->PageAlign; if (opts::AlignText < opts::AlignFunctions) diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp --- a/bolt/lib/Utils/CommandLineOpts.cpp +++ b/bolt/lib/Utils/CommandLineOpts.cpp @@ -42,7 +42,7 @@ cl::opt AlignText("align-text", cl::desc("alignment of .text section"), cl::Hidden, - cl::cat(BoltCategory)); + cl::init(64), cl::cat(BoltCategory)); cl::opt AlignFunctions( "align-functions",