This is an archive of the discontinued LLVM Phabricator instance.

[DEBUGINFO] Add flag -no-dwarf-gnu-pub-sections to disable gnu pub sections.
ClosedPublic

Authored by ABataev on Mar 12 2018, 8:05 AM.

Details

Summary

Added a flag -no-dwarf-gnu-pub-sections, which allows to disable
emission of gnu public sections.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Mar 12 2018, 8:05 AM

What's the use-case/motivation? Should this be an IR feature (on a per-CU
basis, so that LTO can correctly respect some CUs requesting this feature,
and some disabling it)

ABataev updated this revision to Diff 138055.Mar 12 2018, 10:49 AM

Fixed processing only for dwarf pub sections.

echristo accepted this revision.Mar 19 2018, 9:57 AM

What's the use-case/motivation? Should this be an IR feature (on a per-CU
basis, so that LTO can correctly respect some CUs requesting this feature,
and some disabling it)

Right now the idea is that we're going to want to turn off certain kinds of sections for nvptx based assembly (same as the other patch). I think we can possibly come up with dwarf/elf ways to encode this data, but in the short term let's get asm printer (and use a flag to set it up piece by piece testable) and then we can try to figure out ways to actually get the data out in the long term.

I'm going to accept this for now as I had an offline conversation with Dave earlier about this. If there's any review I think it can be post-commit here.

Thanks all!

-eric

This revision is now accepted and ready to land.Mar 19 2018, 9:57 AM
This revision was automatically updated to reflect the committed changes.