This is an archive of the discontinued LLVM Phabricator instance.

[libc] Define LLVM_LIBC_FUNCTION with a layer of macro expansion
ClosedPublic

Authored by mcgrathr on Mar 24 2023, 8:31 PM.

Details

Summary

Move the real LLVM_LIBC_FUNCTION macro definitions to
LLVM_LIBC_FUNCTION_IMPL and make LLVM_LIBC_FUNCTION a wrapper to
expand macros in its arguments. This makes it possible to
compile libc implementation and test files with -Dfunc=othername.

Diff Detail

Event Timeline

mcgrathr created this revision.Mar 24 2023, 8:31 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 24 2023, 8:31 PM
mcgrathr requested review of this revision.Mar 24 2023, 8:31 PM
sivachandra accepted this revision.Mar 24 2023, 9:14 PM
This revision is now accepted and ready to land.Mar 24 2023, 9:14 PM