[patch][rfc] "alias weak" X "weak alias"

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 3 12:42:31 PDT 2014


It always amused me that we have

@a = weak global ...
but
@b = alias weak ...

I decided to dig why that is. The best I could find was

http://llvm.org/bugs/show_bug.cgi?id=1017#c15

Looking at some really old cold then suggests that the reason was that
the old bison based parser hard a reduction for alias linkages and
another one for global variable linkages. Putting the alias first
avoided the reduce/reduce conflict.

The days of the old .ll parser are long gone, but is it too late to
change? In case it is not, the attached patches implement just that
:-)

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: text/x-patch
Size: 3999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140603/be4ca8a3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 48277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140603/be4ca8a3/attachment-0001.bin>


More information about the llvm-commits mailing list