commit | 9d54400bba7eb04bca80fce97fa170452d19eaf1 | [log] [tgz] |
---|---|---|
author | Serge Guelton <sguelton@quarkslab.com> | Tue Apr 11 15:01:18 2017 +0000 |
committer | Serge Guelton <sguelton@quarkslab.com> | Tue Apr 11 15:01:18 2017 +0000 |
tree | 64e13b01cf723975134a80e3940dc21c3f537be7 | |
parent | afa9824a92d8968c3f85bed2740c35fa79a4d4c1 [diff] |
Module::getOrInsertFunction is using C-style vararg instead of variadic templates. From a user prospective, it forces the use of an annoying nullptr to mark the end of the vararg, and there's not type checking on the arguments. The variadic template is an obvious solution to both issues. Differential Revision: https://reviews.llvm.org/D31070 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299949 91177308-0d34-0410-b5e6-96231b3b80d8