[libc] Fix WrapperGen seeing no arguments as a void argument.
authorMichael Jones <michaelrj@google.com>
Wed, 4 Nov 2020 22:58:25 +0000 (22:58 +0000)
committerMichael Jones <michaelrj@google.com>
Thu, 5 Nov 2020 19:13:37 +0000 (19:13 +0000)
commit5c801de13cc2b615e2248be9845190bd1f5ef60f
treec4eb7024e13a97025df08c7ea79c60198e04e3c8
parent439b5bebafec4d4008006fa6a8fb448db7e6c59d
[libc] Fix WrapperGen seeing no arguments as a void argument.

This corrects WrapperGen generating incorrect wrappers for functions
that take no arguments. Previously it would generate a wrapper with a
single argument of type `void`.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D90800
libc/utils/tools/WrapperGen/Main.cpp