mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Object: Add support for opening stdin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5861893c25
commit
c6500a5d77
@ -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