llvm-project/llvm/test/MC/AsmParser
Leandro Vaz 56262a74c3 Fix debug line info when line markers are present inside macros.
Compiling assembly files when newlines are reduced to line markers within a `.macro` context will generate wrong information in `.debug_line` section.
This patch fixes this issue by evaluating line markers within the macro scope but not when they are used and evaluated.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D80381
2020-06-16 16:13:11 +01:00
..
AArch64
Inputs
align_invalid.s
altmacro-err.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
altmacro-expr-err.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
altmacro_expression.s
altmacro_string.s Correct compatibility with the GNU Assembler's handling of comparison ops 2018-05-14 05:25:36 +00:00
altmacro_string_escape.s
assembler-expressions-fail.s [MC] Change AsmParser to leverage Assembler during evaluation 2018-04-30 19:22:40 +00:00
assembler-expressions-inlineasm.ll [MC] Change AsmParser to leverage Assembler during evaluation 2018-04-30 19:22:40 +00:00
assembler-expressions.s MCObjectStreamer: assign MCSymbols in the dummy fragment to offset 0. 2019-11-16 09:52:07 -05:00
assignment.s Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
cfi-unfinished-frame.s
cfi-unknown-register.s [MC] Handle unknown literal register numbers in .cfi_* directives 2017-12-01 21:44:27 +00:00
cfi-window-save.s
comments-x86-darwin.s
conditional_asm.s
dash-n.s
debug-empty-source.s Move `REQUIRES:` line to the top 2018-06-26 17:44:23 +00:00
debug-no-source.s Move `REQUIRES:` line to the top 2018-06-26 17:44:23 +00:00
debug-only-comments.s [DWARF] Emit reasonable debug info for empty .s files. 2019-01-29 20:53:51 +00:00
defsym.s [llvm-objdump] --syms: make flags closer to GNU objdump 2020-03-05 09:59:53 -08:00
defsym_error1.s
defsym_error2.s [llvm-mc] Make error handling more consistent. 2018-04-22 08:01:35 +00:00
directive-err-diagnostics.s
directive-err.s
directive-warning.s
directive_abort.s
directive_align.s
directive_ascii.s [IA] Add tests for a few other edge cases 2019-10-08 22:06:09 +00:00
directive_case_insensitive.s [AsmParser] Make generic directives and aliases case insensitive. 2020-01-17 11:02:56 +00:00
directive_cgprofile.s [MC] Add assembler support for .cg_profile. 2018-06-02 16:33:01 +00:00
directive_comm.s
directive_darwin_section.s
directive_dc.s
directive_dcb.s
directive_desc.s
directive_ds.s
directive_elf_size.s
directive_end-2.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
directive_end.s [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
directive_file-2.s [DWARF] Fix mixing assembler -g with DWARF .file directives. 2018-03-22 15:48:01 +00:00
directive_file-3.s [debuginfo] generate debug info with asm+.file 2018-08-28 16:23:39 +00:00
directive_file-g.s Fix a crash with assembler source and -g. 2019-06-21 13:10:19 +00:00
directive_file.s
directive_fill.s [MC] Relax .fill size requirements 2018-05-18 17:45:48 +00:00
directive_fill_2.s [test] llvm/test/: change llvm-objdump single-dash long options to double-dash options 2020-03-15 17:46:23 -07:00
directive_incbin.s
directive_include.s Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
directive_lcomm.s
directive_line.s
directive_loc.s
directive_loc_2.s [MC][DWARF] Corrected handling of is_stmt flag in .loc directives 2020-04-20 13:57:49 +03:00
directive_lsym.s
directive_org.s
directive_print.s
directive_rept-diagnostics.s
directive_rept.s [MC] Fix nested macro body parsing 2018-07-18 16:17:03 +00:00
directive_seh.s [X86] Fix register parsing in .seh_* in Intel syntax 2019-10-18 21:01:41 +00:00
directive_set.s Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
directive_space.s Correct compatibility with the GNU Assembler's handling of comparison ops 2018-05-14 05:25:36 +00:00
directive_subsections_via_symbols.s
directive_symbol_attrs.s
directive_tbss.s
directive_tdata.s
directive_thread_init_func.s
directive_tlv.s
directive_values.s
directive_zerofill.s
dollars-in-identifiers.s
dot-symbol-assignment-backwards.s
dot-symbol-assignment.s
dot-symbol-non-absolute.s
dot-symbol.s
empty-comment.s
equ.s
expr-shr.s Revert "[llvm][test] Add COM: directives before colon-less non-CHECKs in comments. NFC" 2020-05-22 05:36:15 -06:00
expr_symbol_modifiers.s
exprs-invalid.s [X86] Fix test/MC/AsmParser/exprs-invalid.s after rL336104 2018-07-02 14:13:27 +00:00
exprs.s Correct compatibility with the GNU Assembler's handling of comparison ops 2018-05-14 05:25:36 +00:00
extern.s
floating-literals.s [MC] Fix floating-point literal lexing. 2019-03-28 21:12:28 +00:00
hash-directive.s
hello.s
if-diagnostics.s
ifb.s
ifc.s
ifdef.s [MC] Do not consider .ifdef/.ifndef as a use 2019-01-28 19:32:08 +00:00
ifeqs-diagnostics.s
ifeqs.s
ifndef.s [MC] Do not consider .ifdef/.ifndef as a use 2019-01-28 19:32:08 +00:00
ifnes.s
incbin_abcd
include.ll Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
inline-comments.ll
invalid-asm-variant.s
labels.s Use .set instead of = when printing assignment in assembly output 2018-03-27 16:44:41 +00:00
line-marker-inside-macro.s Fix debug line info when line markers are present inside macros. 2020-06-16 16:13:11 +01:00
line_with_hash.s
lit.local.cfg [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
macro-arg-darwin.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-arg-err.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
macro-arg.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-at-pseudo-variable-err.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
macro-at-pseudo-variable.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
macro-def-in-instantiation-darwin.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-def-in-instantiation.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-exitm.s
macro-irp.s
macro-irpc.s
macro-max-depth.s
macro-rept-err1.s
macro-rept-err2.s
macro-rept.s
macro-required-argument-err.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-required-argument.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-same-context.ll Add AIX to the test macro-same-context XFAIL list 2020-05-25 10:19:45 -04:00
macro-unknown-directive.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
macro-vararg-err.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
macro-vararg.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
macro_parsing.s
macros-darwin-vararg.s
macros-darwin.s
macros-off.s [MC][test] Reorganize macro tests 2020-04-12 15:18:35 -07:00
non-english-characters.s [Object] Change ELFObjectFile<ELFT>::getFileFormatName() to use BFD names 2020-03-16 07:42:04 -07:00
pr11865.s
pr28805.ll
pr28921.s
preserve-comments-crlf.s Remove some unnecessary REQUIRES: shell lines 2019-09-10 00:06:52 +00:00
preserve-comments.s [MC][test] Fix non-portable GNU diff option 2020-01-16 11:29:24 -05:00
purgem.s
reassign.s
rename.s
section.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
section_names.s [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
secure_log_unique.s
seh-directive-errors.s [MC] Avoid crashes from improperly nested or wrong target .seh_handlerdata directives 2019-08-30 22:25:55 +00:00
seh-unfinished-frame.s
undefined-local-symbol.s
unfinished-op.s X86AsmParser: Do not process a non-existent token 2019-03-26 03:12:41 +00:00
unmatched-if-macro.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
unmatched-if.s [MC] Reorganize and improve macro tests 2020-04-12 22:54:01 -07:00
uppercase-hex.s
vararg-default-value.s
variables-invalid.s
variables.s