This is an archive of the discontinued LLVM Phabricator instance.

[WIP] Always create a MCFragment for Mach-O section.
AbandonedPublic

Authored by JDevlieghere on Jul 18 2018, 3:56 AM.

Details

Diff Detail

Event Timeline

JDevlieghere created this revision.Jul 18 2018, 3:56 AM
dblaikie added inline comments.
llvm/lib/MC/MCObjectFileInfo.cpp
955–957

How does this section get deduplicated by the linker? (I don't see the 'Hash' being used here, which is the unique key for the section)

960–964

Similarly here..

969

I assume this is incorrect (given that this function is for the debug_types section (& should be comdat or equivalent) rather than debug_info)?

JDevlieghere marked an inline comment as done.Jul 20 2018, 2:57 AM
JDevlieghere added inline comments.
llvm/lib/MC/MCObjectFileInfo.cpp
955–957

I can only speak for Darwin, but the linker just ignores debug info. We have dsymutil for deduplication.

969

Yup, this is a typo

Posted to the bug with some questions about this direction - or happy to have the conversation here instead.

JDevlieghere abandoned this revision.Jul 31 2018, 5:05 AM
JDevlieghere marked an inline comment as done.

The consensus is that we won't support this, at least for now.