1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/lib/MC/MCParser
Oliver Stannard 90a74252e6 [Assembler] Allow non-fatal errors after parsing
This adds reportError to MCContext, which can be used as an alternative to
reportFatalError when the assembler wants to try to continue processing the
rest of the file after the error is reported, so that all of the errors ina
file can be reported. It records the fact that an error was encountered, so we
can avoid emitting an object file if any errors occurred.

This patch doesn't add any uses of this function (a later patch will convert
most uses of reportFatalError to use it), but there is a small functional
change: we use the SourceManager to print the error message, even if we have a
null SMLoc. This means that we get a SourceManager-style message, with the file
and line information shown as <unknown>, rather than the "LLVM ERROR" style
used by report_fatal_error.

llvm-svn: 253327
2015-11-17 09:58:07 +00:00
..
AsmLexer.cpp Extend MCAsmLexer so that it can peek forward several tokens 2015-08-17 14:35:25 +00:00
AsmParser.cpp [Assembler] Allow non-fatal errors after parsing 2015-11-17 09:58:07 +00:00
CMakeLists.txt Fix header path in CMake. NFC. 2015-06-19 20:49:02 +00:00
COFFAsmParser.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
DarwinAsmParser.cpp ARM: support .watchos_version_min and .tvos_version_min. 2015-10-28 22:36:05 +00:00
ELFAsmParser.cpp Drop prelink support. 2015-11-17 00:51:23 +00:00
LLVMBuild.txt
Makefile
MCAsmLexer.cpp [AsmParser] Allow tokens to be put back in to the token stream. 2015-11-08 23:48:23 +00:00
MCAsmParser.cpp
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp Reduce the size of MCRelaxableFragment. 2015-11-14 06:35:56 +00:00