This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add Convenience syscall Template Function
ClosedPublic

Authored by abrachet on Feb 13 2020, 12:56 AM.

Details

Summary

This patch adds a convenience template function so we don't need to cast all types to long manually when calling __llvm_libc::syscall.

Diff Detail

Event Timeline

abrachet created this revision.Feb 13 2020, 12:56 AM

Yeah that would be nice to separate the formatting [NFC] from the template addition. It's hard spot what changed in the file :)

Yes, can you please separate the formatting from the actual change?

abrachet updated this revision to Diff 244484.Feb 13 2020, 11:23 AM
abrachet edited the summary of this revision. (Show Details)
sivachandra accepted this revision.Feb 13 2020, 11:36 AM
This revision is now accepted and ready to land.Feb 13 2020, 11:36 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2020, 11:47 AM