summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Binary.cpp
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
commit159970f7337088ee5475669b43dd58d1cdabca95 (patch)
tree328f077b8be94faa2d47736e3502728234719909 /llvm/lib/Object/Binary.cpp
parent7eb8159927c8344d38a822cdced3df2c010a4b0f (diff)
downloadbcm5719-llvm-159970f7337088ee5475669b43dd58d1cdabca95.tar.gz
bcm5719-llvm-159970f7337088ee5475669b43dd58d1cdabca95.zip
Object: Add support for opening stdin.
llvm-svn: 141449
Diffstat (limited to 'llvm/lib/Object/Binary.cpp')
-rw-r--r--llvm/lib/Object/Binary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp
index 3b00bebaa6e..4e528d8ea56 100644
--- a/llvm/lib/Object/Binary.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud