llvm.org GIT mirror llvm / 0f4ed87
simplify code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36837 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
5959 std::auto_ptr M;
6060
6161 if (Bitcode) {
62 MemoryBuffer *Buffer;
63 if (InputFilename == "-") {
64 Buffer = MemoryBuffer::getSTDIN();
65 } else {
66 Buffer = MemoryBuffer::getFile(&InputFilename[0], InputFilename.size());
67 }
62 MemoryBuffer *Buffer
63 = MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size());
6864
6965 if (Buffer == 0)
7066 ErrorMessage = "Error reading file '" + InputFilename + "'";