Use llvm::MemoryBuffer for getting input stream