[BOLT] Parse library options into a context and pass it to MC (#244336)
After #242689, options of LLVM libraries declared in
TableGen (e.g. X86MCOptions: -x86-align-branch-boundary,
-x86-align-branch, -x86-pad-max-prefix-size, ...) are only recognized by
cl::parseCommandLineOptions taking a LibraryOptionsContext, and the MC
layer reads them through MCTargetOptions::LibraryOptions.
llvm-bolt still used the legacy cl::ParseCommandLineOptions, so these
options became "Unknown command line argument" and the Intel JCC erratum
mitigation (-x86-align-branch*) could no longer be requested.
Parse command lines into
opts::LibraryOptionsCtx and point the MCTargetOptions used for
BinaryContext MCAsmInfo at it.