llvm-project/llvm/test/MC/ELF
RamNalamothu 41f8b8e807 [MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling
This change enables emitting CFI unwind information for debugging purpose
for targets with MCAsmInfo::ExceptionsType == ExceptionHandling::None.

Currently generating CFI unwind information is entangled with supporting
the exceptions, even when AsmPrinter explicitly recognizes that the unwind
tables are being generated as debug information.

In fact, the unwind information is not generated even if we specify
--force-dwarf-frame-section, unless exceptions are enabled. The LIT test
llvm/test/CodeGen/AMDGPU/debug_frame.ll demonstrates this behavior.

Enable this option for AMDGPU to prepare for future patches which add
complete CFI support.

Reviewed By: dblaikie, MaskRay

Differential Revision: https://reviews.llvm.org/D78778
2021-05-06 04:53:45 +05:30
..
AMDGPU [MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling 2021-05-06 04:53:45 +05:30
ARM ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
abs.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
addrsig-error.s
addrsig.s [MC] Parse end-of-line for .addrsig & .addrsig_sym 2021-03-06 16:26:27 -08:00
alias-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
alias-to-local.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
alias.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
align-bss.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
align-nops.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
align-size.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
align-text.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
align-zero.s
align.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
bad-expr.s
bad-expr2.s [MC] Delete unnecessary diagnostic: "No relocation available to represent this relative expression" 2019-08-19 07:59:35 +00:00
bad-expr3.s
bad-relocation.s
bad-section.s
basic-elf-32.s [MC][ELF] Allow STT_SECTION referencing SHF_MERGE on REL targets 2020-12-20 18:37:14 -08:00
basic-elf-64.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-adjust-cfa-offset.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-advance-loc2.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-b-key-frame.s
cfi-def-cfa-offset.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-def-cfa-register.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-def-cfa.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-escape.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-fde-encoding.s [MC][test] Reorganize .cfi_* tests 2020-12-21 17:18:28 -08:00
cfi-large-model.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-offset.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-reg.s
cfi-register.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-rel-offset.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-rel-offset2.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-remember.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-restore-extended.s Show register names in DWARF unwind info. 2020-10-05 15:34:33 -07:00
cfi-restore.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-return-column.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-same-value.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-scope-errors.s [MC][test] Reorganize .cfi_* tests 2020-12-21 17:18:28 -08:00
cfi-scope-errors2.s [MC][test] Reorganize .cfi_* tests 2020-12-21 17:18:28 -08:00
cfi-sections-empty.s [MC] Allow .cfi_sections with empty section list 2021-02-25 22:29:49 -08:00
cfi-sections.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-signal-frame.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi-undefined.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-version.ll mac/arm: XFAIL the last 2 failing check-llvm tests 2020-12-12 20:12:02 -05:00
cfi-window-save.s [MC] Parse end-of-line for .cfi_* directives 2021-03-06 16:20:55 -08:00
cfi-zero-addr-delta.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
cfi.s [MC] Add MCAsmParser::parseComma to improve diagnostics 2021-05-04 14:13:19 -07:00
cgprofile-error.s
cgprofile.ll [llvm-readobj] set --elf-cg-profile as alias of --cg-profile 2020-06-17 11:24:45 -07:00
cgprofile.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
comdat-declaration-errors.s
comdat-name-number.s
comdat-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
comdat.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
common-error1.s
common-error2.s
common-error3.s Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
common-redeclare.s [MC][test] Improve some llvm-objdump -t tests 2020-03-03 17:27:06 -08:00
common.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
common2.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
comp-dir.s Remove some unnecessary REQUIRES: shell lines 2019-09-10 00:06:52 +00:00
compression.s [MC][ELF] Allow STT_SECTION referencing SHF_MERGE on REL targets 2020-12-20 18:37:14 -08:00
debug-file-options.s
debug-hash-file.s
debug-line.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
debug-line2.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
debug-loc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
debug-main-file.s
debug-md5-err.s
debug-md5.s
debug-mixed-md5.ll
debug-prefix-map.s
debug-source.s
diff.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
diff2.s
discriminator.s [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
div-by-zero.s
dot-symbol-assignment.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
dwarf-file0.s [MC] Upgrade DWARF version to 5 upon .file 0 2021-02-02 09:41:05 -08:00
dwarf-loc0.s [MC] Upgrade DWARF version to 5 upon .file 0 2021-02-02 09:41:05 -08:00
dwarf64-err.s [MC] Add --dwarf64 to generate DWARF64 debug info [1/7] 2020-06-16 15:50:13 +07:00
dwo-restrict-relocs.s
dwo-sections.s
elf_directive_previous.s
elf_directive_section.s
empty-dwarf-lines.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
empty-twice.ll
empty.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
entsize.ll [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
entsize.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
exclude-debug-dwo.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
expand-var.s [MC][test] Reorganize .cfi_* tests 2020-12-21 17:18:28 -08:00
file.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
gen-dwarf.s [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
gen-dwarf64.s [MC] Generate .debug_frame in the 64-bit DWARF format [7/7] 2020-06-16 15:50:14 +07:00
global-offset.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
gnu-type-diagnostics.s
gnu-type.s
got-relaxed-i386.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
got-relaxed-no-relax.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
got.s [X86] Produce R_X86_64_GOTPCRELX for test/binop instructions (MOV32rm/TEST32rm/...) when -Wa,-mrelax-relocations=yes is enabled 2020-10-24 15:14:17 -07:00
ident.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
ifunc-alias.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
ifunc-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
lcomm.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
leb128.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
lit.local.cfg [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
local-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
lto-discard.s [MC] Remove unneeded "in '.xxx' directive" from diagnostics 2021-05-04 13:30:29 -07:00
many-sections-2.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
many-sections-3.s
many-sections.s
merge.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
n_bytes.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
no-fixup.s
no-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
nobits-non-zero-value.s [MC][COFF][ELF] Reject instructions in IMAGE_SCN_CNT_UNINITIALIZED_DATA/SHT_NOBITS sections 2020-04-15 21:02:47 -07:00
nocompression.s
noexec.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
norelocation.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
offset.s
org.s [MC] Allow .org directives in SHT_NOBITS sections 2020-09-11 15:12:42 -07:00
pic-diff.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
plt.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
popsection.s
pr9292.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
pr19430.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
pr19582.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
relax-all-flag.s [test] llvm/test/: change llvm-objdump single-dash long options to double-dash options 2020-03-15 17:46:23 -07:00
relax-arith.s [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
relax-arith2.s [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
relax-arith3.s [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
relax-arith4.s [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
relax-crash.s
reloc-directive.s [MC] Support .reloc sym+constant, *, * 2020-07-14 13:44:00 -07:00
reloc-same-name-section.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
relocation-386.s [MC][ELF] Allow STT_SECTION referencing SHF_MERGE on REL targets 2020-12-20 18:37:14 -08:00
relocation-alias.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
relocation-pc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
relocation.s MCExpr::evaluateAsRelocatableImpl : allow evaluation of non-VK_None MCSymbolRefExpr when MCAsmLayout is available 2020-11-18 13:52:33 -08:00
rename.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-combine.s [MC][ELF] Make linked-to symbol name part of ELFSectionKey 2020-02-14 20:03:04 -08:00
section-entsize-changed.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
section-flags-changed.s [MC][ELF] Accept abbreviated form with sh_flags and sh_entsize 2020-12-11 16:45:45 +00:00
section-gnu.s Add requirement for aarch64-registered-target to test change added in 42e3f97a9d. 2021-03-09 12:26:15 -08:00
section-linkorder-error.s [MC][ELF] Rename MC related "Associated" to "LinkedToSym" 2020-02-06 11:31:04 -08:00
section-linkorder.s [MC] Set sh_link to 0 if the associated symbol is undefined 2020-08-03 13:43:48 -07:00
section-numeric-flag.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-numeric-invalid-type.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-numeric-type.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-omitted-attributes.s [MC][ELF] Fix accepting abbreviated form with sh_flags and sh_entsize 2021-01-28 14:54:43 +00:00
section-quoting.s
section-relro.ll [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-sym-err.s [CodeGen] Report a normal instead of fatal error for label redefinition 2021-03-09 10:54:41 +00:00
section-sym-err2.s
section-sym.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
section-sym2.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section-type-changed.s [MC][X86] Allow SHT_PROGBITS for .eh_frame on x86-64 2020-04-16 10:42:52 -07:00
section-unique-err1.s
section-unique-err2.s
section-unique-err3.s
section-unique-err4.s
section-unique.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
section.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
set.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
size.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
sleb.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
strtab-suffix-opt.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
subsection.s
subtraction-error.s
symbol-binding-changed.s [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
symbol-names.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
symver-err.s [MC] Report locations for .symver errors 2020-12-20 21:04:12 -08:00
symver-msvc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
symver-pr23914.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
symver-remove.s [MC] Support .symver *, *, remove 2021-03-06 15:23:02 -08:00
symver-visibility.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
symver.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
target-in-same-section.s [MC] Don't resolve relocations referencing STB_LOCAL STT_GNU_IFUNC 2020-01-13 23:36:06 -08:00
tls-i386.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
tls.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
type-propagate.s ELFObjectWriter: Don't sort local symbols 2021-02-07 15:47:10 -08:00
type.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
uleb-ehtable.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
uleb.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
undef-temp.s
undef.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
undefined-debug.s
undefined-directional.s
version.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
weak-diff.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
weak-relocation.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
weak.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
weakref-plt.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
weakref-reloc.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
weakref.s ELFObjectWriter: Don't sort non-local symbols 2021-02-13 10:32:27 -08:00
x86_64-reloc-sizetest.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
zero.s [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00