This is an archive of the discontinued LLVM Phabricator instance.

COFF: Let globals with private linkage reside in their own section
ClosedPublic

Authored by majnemer on Mar 17 2015, 12:27 AM.

Details

Summary

COFF COMDATs (for selection kinds other than 'select any') require at
least one non-section symbol in the symbol table.
Satisfy this by morally enhancing the linkage from private to internal.

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 22075.Mar 17 2015, 12:27 AM
majnemer retitled this revision from to COFF: Let globals with private linkage reside in their own section.
majnemer updated this object.
majnemer added a reviewer: rafael.
majnemer added a subscriber: Unknown Object (MLST).
rafael edited edge metadata.Mar 17 2015, 5:01 AM

Nice to see this!

lib/CodeGen/TargetLoweringObjectFileImpl.cpp
963 ↗(On Diff #22075)

Can't you just pass CannotUsePrivateLabel in here?

This revision was automatically updated to reflect the committed changes.