I think we should try to move MemoryBuffer into LinkerInput, but if it's going to be a rather large refactoring, I think it shouldn't block this patch. This code LGTM. http://llvm-reviews.chandlerc.com/D1587