llvm.org GIT mirror llvm / 40bb451
For PR797: Update to reflect ParseException becoming ParseError (from Parser.h) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29766 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
3 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
109109
110110 if (F == 0)
111111 {
112 throw ParseException(filename,
113 "Could not open file '" + filename + "'");
112 ParseError Err;
113 Err.setError(filename, "Could not open file '" + filename + "'");
114 throw Err;
114115 }
115116 }
116117
157157 {
158158 if (line == -1) line = Stackerlineno;
159159 // TODO: column number in exception
160 throw ParseException(TheInstance->CurFilename, message, line);
160 ParseError Err;
161 Err.setError(TheInstance->CurFilename, message, line);
162 throw Err;
161163 }
162164 private:
163165 /// @brief Generate code to increment the stack index
163163 }
164164
165165 WriteBytecodeToFile(M.get(), *Out);
166 } catch (const ParseException &E) {
166 } catch (const ParseError &E) {
167167 std::cerr << argv[0] << ": " << E.getMessage() << "\n";
168168 return 1;
169169 }