Update the MemoryBuffer API to use ErrorOr.
Update for llvm api change.
Update for llvm api change.
Update for llvm api change.