[llvm-commits] [llvm] r44354 - /llvm/trunk/test/CFrontend/extern-weak.c

Chris Lattner clattner at apple.com
Mon Nov 26 22:33:18 PST 2007


On Nov 26, 2007, at 10:23 PM, Zhou Sheng wrote:

> Author: sheng
> Date: Tue Nov 27 00:23:59 2007
> New Revision: 44354
>
> URL: http://llvm.org/viewvc/llvm-project?rev=44354&view=rev
> Log:
> Make this pass for CYGWIN.

Would this be better written as:

#if defined(__APPLE__)
void foo() __attribute__((weak_import));
#else
void foo() __attribute__((weak));
#endif

?

Does any other platform use weak_import?

-Chris



More information about the llvm-commits mailing list