OSDN Git Service

[MC] Report fatal error for DWARF types for non-ELF object files
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 1 Aug 2018 12:53:06 +0000 (12:53 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 1 Aug 2018 12:53:06 +0000 (12:53 +0000)
commit6c7ea834f85a9d6bb9b70a9b2bf9d40369955bdd
tree89bf44efe26464b723e6660da874f1b0f743243d
parenta9d3893accd2ad61d851a82887aa1521545b45f8
[MC] Report fatal error for DWARF types for non-ELF object files

Getting the DWARF types section is only implemented for ELF object
files. We already disabled emitting debug types in clang (r337717), but
now we also report an fatal error (rather than crashing) when trying to
obtain this section in MC. Additionally we ignore the generate debug
types flag for unsupported target triples.

See PR38190 for more information.

Differential revision: https://reviews.llvm.org/D50057

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/MC/MCObjectFileInfo.cpp
test/DebugInfo/X86/accel-tables-dwarf5.ll
test/DebugInfo/X86/accel-tables.ll