summaryrefslogtreecommitdiff
path: root/lib/Object
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-08 00:17:58 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-08 00:17:58 +0000
commitc6500a5d77159e9c9a9f1f8f56307a0016f229a0 (patch)
treeb6f8e95c9c1076f579901c90c9fe201ace2c8447 /lib/Object
parent5861893c25ee9ee6bb2991057169c0cb1e1331e0 (diff)
downloadllvm-c6500a5d77159e9c9a9f1f8f56307a0016f229a0.tar.gz
llvm-c6500a5d77159e9c9a9f1f8f56307a0016f229a0.tar.bz2
llvm-c6500a5d77159e9c9a9f1f8f56307a0016f229a0.tar.xz
Object: Add support for opening stdin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/Binary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/Binary.cpp b/lib/Object/Binary.cpp
index 3b00bebaa6..4e528d8ea5 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<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);
}