by inline assembly string replacement. The alternative is using a ad-hoc
MCStreamer and AsmParser, but it is more
expensive to do that and the use cases are very rare that makes it not
worthwhile.
The motivation is that after D90108, the use case demonstrated by the
test case begins to fail. I find the error message is useful hence
this patch.
The change in MachineModuleInfo.cpp is to make sure the error code 1 is
returned. Without it, the error message is printed but llvm-lto2 still
returns 0.
This is to avoid creating a real MCRegisterInfo in getTargetAsmSeparator below.