This is an archive of the discontinued LLVM Phabricator instance.

[MC] Report fatal error for DWARF types for non-ELF object files
ClosedPublic

Authored by JDevlieghere on Jul 31 2018, 5:53 AM.

Details

Summary

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.

See PR38190 for more information.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Jul 31 2018, 5:53 AM
dblaikie accepted this revision.Jul 31 2018, 2:44 PM

Should the command line argument be ignored on platforms that don't support type units? (& this code should be an assert, rather than a runtime_fatal_error?)

This revision is now accepted and ready to land.Jul 31 2018, 2:44 PM
This revision was automatically updated to reflect the committed changes.