[libc] move printf_main in to object library
authorMichael Jones <michaelrj@google.com>
Wed, 1 Jun 2022 21:45:50 +0000 (14:45 -0700)
committerMichael Jones <michaelrj@google.com>
Thu, 9 Jun 2022 21:35:18 +0000 (14:35 -0700)
commite1c54d4ddc5e1633cdeebb36b24d9a81aec77c33
tree06b46a0dd0d1d350b4145e31c147ecf9b807ac81
parent70d35fe1257e429266b83025997b400e9f79110e
[libc] move printf_main in to object library

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.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D126830
libc/src/stdio/printf_core/CMakeLists.txt
libc/src/stdio/printf_core/file_writer.cpp [new file with mode: 0644]
libc/src/stdio/printf_core/file_writer.h
libc/src/stdio/printf_core/printf_main.cpp [new file with mode: 0644]
libc/src/stdio/printf_core/printf_main.h
libc/src/stdio/printf_core/string_writer.cpp [new file with mode: 0644]
libc/src/stdio/printf_core/string_writer.h