Object: Add support for opening stdin.

llvm-svn: 141449
This commit is contained in:
Michael J. Spencer 2011-10-08 00:17:58 +00:00
parent 1acd078990
commit edcc61ba22

View File

@ -97,7 +97,7 @@ error_code object::createBinary(MemoryBuffer *Source,
error_code object::createBinary(StringRef Path, OwningPtr<Binary> &Result) {
OwningPtr<MemoryBuffer> File;
if (error_code ec = MemoryBuffer::getFile(Path, File))
if (error_code ec = MemoryBuffer::getFileOrSTDIN(Path, File))
return ec;
return createBinary(File.take(), Result);
}