This is an archive of the discontinued LLVM Phabricator instance.

[libc] move printf_main in to object library
ClosedPublic

Authored by michaelrj on Jun 1 2022, 3:02 PM.

Details

Summary

Previously printf_main was a header library, but header library
dependencies don't work properly so it's been moved to an object
library. Additionally, the writers have been marked inline.

Diff Detail

Event Timeline

michaelrj created this revision.Jun 1 2022, 3:02 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 1 2022, 3:02 PM
michaelrj requested review of this revision.Jun 1 2022, 3:02 PM
sivachandra accepted this revision.Jun 2 2022, 1:17 AM
sivachandra added inline comments.
libc/src/stdio/printf_core/file_writer.h
20

Since we need pointers to these functions, they being inline is of no benefit? They could very well be in an object library of their own?

This revision is now accepted and ready to land.Jun 2 2022, 1:17 AM
michaelrj updated this revision to Diff 434155.Jun 3 2022, 3:06 PM
michaelrj marked an inline comment as done.

move writers to be object libraries

lntue accepted this revision.Jun 6 2022, 7:08 AM
sivachandra accepted this revision.Jun 6 2022, 8:52 AM
michaelrj updated this revision to Diff 435681.Jun 9 2022, 2:12 PM

rebase before landing

This revision was automatically updated to reflect the committed changes.