projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5861893
)
Object: Add support for opening stdin.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Sat, 8 Oct 2011 00:17:58 +0000
(
00:17
+0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Sat, 8 Oct 2011 00:17:58 +0000
(
00:17
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141449
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/Binary.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/Binary.cpp
b/lib/Object/Binary.cpp
index 3b00bebaa6e3d946bc7455cccca4eaa335d13ede..4e528d8ea565cdd5128857ea0d72cc8fe39b433c 100644
(file)
--- 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::getFile
OrSTDIN
(Path, File))
return ec;
return createBinary(File.take(), Result);
}