mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
Object: Add support for opening stdin.
llvm-svn: 141449
This commit is contained in:
parent
1acd078990
commit
edcc61ba22
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user