1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/lib/AsmParser
Reid Spencer 0d237ceba1 Fix PR902:
Errors are generated with the YYERROR macro which can only be called from
a production (inside yyparse) because of the goto statement in the macro.
This lead to several situations where GEN_ERROR was not called but
GenerateError was used instead (because it doesn't use YYERROR). However,
in such situations, catching the error much later (e.g. at the end of
the production) is not sufficient because LLVM can assert on invalid data
before the end of the production is reached. The solution is to ensure that
the CHECK_FOR_ERROR macro (which invokes YYERROR if there's an error) is
used as soon as possible after a call to GenerateError has been made.

llvm-svn: 30650
2006-09-28 19:28:24 +00:00
..
.cvsignore Add new generated files. 2006-03-23 23:48:12 +00:00
Lexer.cpp.cvs Added some eye-candy for Subtarget type checking 2006-09-17 20:25:45 +00:00
Lexer.l Added some eye-candy for Subtarget type checking 2006-09-17 20:25:45 +00:00
Lexer.l.cvs Added some eye-candy for Subtarget type checking 2006-09-17 20:25:45 +00:00
llvmAsmParser.cpp.cvs Fix PR902: 2006-09-28 19:28:24 +00:00
llvmAsmParser.h.cvs Fix PR902: 2006-09-28 19:28:24 +00:00
llvmAsmParser.y Fix PR902: 2006-09-28 19:28:24 +00:00
llvmAsmParser.y.cvs Fix PR902: 2006-09-28 19:28:24 +00:00
Makefile For PR797: 2006-08-18 09:30:03 +00:00
Parser.cpp For PR797: 2006-08-18 08:43:06 +00:00
ParserInternals.h For PR797: 2006-08-18 08:43:06 +00:00