llvm.org GIT mirror llvm / c6500a5
Object: Add support for opening stdin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141449 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9696
9797 error_code object::createBinary(StringRef Path, OwningPtr &Result) {
9898 OwningPtr File;
99 if (error_code ec = MemoryBuffer::getFile(Path, File))
99 if (error_code ec = MemoryBuffer::getFileOrSTDIN(Path, File))
100100 return ec;
101101 return createBinary(File.take(), Result);
102102 }