[llvm-commits] [llvm] r141449 - /llvm/trunk/lib/Object/Binary.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Fri Oct 7 17:17:58 PDT 2011
Author: mspencer
Date: Fri Oct 7 19:17:58 2011
New Revision: 141449
URL: http://llvm.org/viewvc/llvm-project?rev=141449&view=rev
Log:
Object: Add support for opening stdin.
Modified:
llvm/trunk/lib/Object/Binary.cpp
Modified: llvm/trunk/lib/Object/Binary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Binary.cpp?rev=141449&r1=141448&r2=141449&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Binary.cpp (original)
+++ llvm/trunk/lib/Object/Binary.cpp Fri Oct 7 19:17:58 2011
@@ -97,7 +97,7 @@
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);
}
More information about the llvm-commits
mailing list