From edcc61ba225d759c799318dd8e90c5eebd9e0623 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Sat, 8 Oct 2011 00:17:58 +0000 Subject: [PATCH] Object: Add support for opening stdin. llvm-svn: 141449 --- lib/Object/Binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }