[PATCH] D28596: [compiler-rt] General definition for weak functions.

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 17:31:52 PST 2017

zturner added a comment.

In https://reviews.llvm.org/D28596#649055, @aizatsky wrote:

> Another wild thought: is there any template magic that we might invoke to automate creation of function aliases?

I don't think a template would work because of the attributes and the fact that the name has to be different.  You couldn't propagate the name through a template, it has to be done via macro.  I'm trying to think of alternatives, but nothing really comes to mind.  Will give it some more thought.


More information about the llvm-commits mailing list