This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Refactor num_put::do_put to reduce duplication
ClosedPublic

Authored by ldionne on Oct 29 2021, 9:34 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rGb889cbf36635: [libc++] Refactor num_put::do_put to reduce duplication
Summary

I was going to make a change in that area of the code and I noticed that
we basically duplicated the same code 5 times to handle integral types
and floating point types. This commit simply pulls the duplication into
a function.

Diff Detail

Event Timeline

ldionne requested review of this revision.Oct 29 2021, 9:34 AM
ldionne created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 9:34 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 383460.Oct 29 2021, 12:17 PM

Fix visibility of symbols.

ldionne accepted this revision.Nov 1 2021, 7:04 AM
This revision is now accepted and ready to land.Nov 1 2021, 7:04 AM
This revision was automatically updated to reflect the committed changes.