[llvm] r210121 - Fix a small bug in the parsing of anonymous globals.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jun 3 13:46:35 PDT 2014


On 3 June 2014 16:42, Reid Kleckner <rnk at google.com> wrote:
> Seems good for LLVM IL consistency, but what does it mean to export an
> unnamed global?  Now I want a test for the error that we should produce
> somewhere when running llc on this.  :)

Yes, but the error should be the same for both

hidden dllexport global i32 42

and

dllexport global i32 42

Currently we unfortunately don't produce an error and instead print

--------------------------------
 _unnamed_1:
.long 42                      # 0x2a


.section .drectve,"r"
.ascii " /EXPORT:__unnamed_1,DATA"
---------------------------------------

Cheers,
Rafael



More information about the llvm-commits mailing list