From: Michael J. Spencer Date: Sat, 8 Oct 2011 00:17:58 +0000 (+0000) Subject: Object: Add support for opening stdin. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c6500a5d77159e9c9a9f1f8f56307a0016f229a0;p=oota-llvm.git Object: Add support for opening stdin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141449 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/Binary.cpp b/lib/Object/Binary.cpp index 3b00bebaa6e..4e528d8ea56 100644 --- a/lib/Object/Binary.cpp +++ b/lib/Object/Binary.cpp @@ -97,7 +97,7 @@ error_code object::createBinary(MemoryBuffer *Source, error_code object::createBinary(StringRef Path, OwningPtr &Result) { OwningPtr File; - if (error_code ec = MemoryBuffer::getFile(Path, File)) + if (error_code ec = MemoryBuffer::getFileOrSTDIN(Path, File)) return ec; return createBinary(File.take(), Result); }