[llvm-commits] CVS: llvm/tools/llvm-dis/llvm-dis.cpp
Chris Lattner
sabre at nondot.org
Sat Apr 21 23:35:38 PDT 2007
Changes in directory llvm/tools/llvm-dis:
llvm-dis.cpp updated: 1.57 -> 1.58
---
Log message:
don't break reading from stdin
---
Diffs of the changes: (+3 -2)
llvm-dis.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/tools/llvm-dis/llvm-dis.cpp
diff -u llvm/tools/llvm-dis/llvm-dis.cpp:1.57 llvm/tools/llvm-dis/llvm-dis.cpp:1.58
--- llvm/tools/llvm-dis/llvm-dis.cpp:1.57 Sun Apr 22 01:31:02 2007
+++ llvm/tools/llvm-dis/llvm-dis.cpp Sun Apr 22 01:35:20 2007
@@ -54,8 +54,9 @@
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,
More information about the llvm-commits
mailing list