mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
don't break reading from stdin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
395439bb22
commit
197cceaaac
@ -54,8 +54,9 @@ int main(int argc, char **argv) {
|
||||
std::string ErrorMessage;
|
||||
|
||||
std::auto_ptr<Module> M;
|
||||
|
||||
M.reset(ParseBitcodeFile(InputFilename, &ErrorMessage));
|
||||
|
||||
if (InputFilename != "-")
|
||||
M.reset(ParseBitcodeFile(InputFilename, &ErrorMessage));
|
||||
|
||||
if (M.get() == 0)
|
||||
M.reset(ParseBytecodeFile(InputFilename,Compressor::decompressToNewBuffer,
|
||||
|
Loading…
Reference in New Issue
Block a user