llvm-project/llvm/lib/MC/MCParser
Kristina Brooks 1a41a116ec [MC][DWARF][AsmParser] Ensure nested CFI frames are diagnosed.
This avoids a crash (with asserts) or bad codegen (without asserts)
in Dwarf streamer later on. This patch fixes this condition in 
MCStreamer and propogates SMLoc down when it's available with an
added bonus of source locations for those specific types of errors.

Further patches could use similar improvements as currently most
non-Windows CFI directives lack an SMLoc parameter.

Modified an existing test to verify source location propogation and
added an object-file version of it to verify that it does not crash in
addition to a standalone test to only ensure it does not crash.

Differential Revision: https://reviews.llvm.org/D51695

llvm-svn: 344781
2018-10-19 12:14:30 +00:00
..
AsmLexer.cpp [MC] Fix regression tests on Windows when git “core.autocrlf” is set to true. 2017-11-17 21:59:43 +00:00
AsmParser.cpp [MC][DWARF][AsmParser] Ensure nested CFI frames are diagnosed. 2018-10-19 12:14:30 +00:00
CMakeLists.txt
COFFAsmParser.cpp [MC] Add support for the .rva assembler directive for COFF targets 2018-07-26 20:11:26 +00:00
DarwinAsmParser.cpp [MC] Error on a .zerofill directive in a non-virtual section 2018-07-02 17:29:43 +00:00
ELFAsmParser.cpp Revert "Add a warning if someone attempts to add extra section flags to sections" 2018-08-05 14:23:37 +00:00
LLVMBuild.txt
MCAsmLexer.cpp [MCAsmParser] Move AltMacroMode tracking out of MCAsmLexer 2018-09-25 20:55:55 +00:00
MCAsmParser.cpp [MC][X86] Allow assembler variable assignment to register name. 2018-06-05 15:13:39 +00:00
MCAsmParserExtension.cpp [MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-10 01:33:54 +00:00
MCTargetAsmParser.cpp [Asm] Add debug tracing in table-generated assembly matcher 2017-10-11 09:17:43 +00:00