This MCObjectFileInfo is then used to determine things like section
alignment.
For example, this commit removes the hard-coded 4-byte alignment for
text sections and uses the alignment defined by the target specific
MCObjectFileInfo.
This is a follow up to https://reviews.llvm.org/D101462 and prepares for the
RISCV backend defining the text section alignment depending on the enabled
extensions.
Can MOFI be null? (i.e. can createMCObjectFileInfo guarantee no-null return value?)
Consider moving the construction below the checks.