[patch] Don't make assumptions about the name of private global variables
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Nov 10 19:05:48 PST 2014
+mgottesman: any idea how to test this?
> On 2014-Nov-10, at 14:08, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>
> Private variables are can be renamed, so it is not reliable to make
> decisions on the name.
>
> The name is also dropped by the assembler before getting to the
> linker, so using the name causes a disconnect between how llvm makes a
> decision (var name) and how the linker makes a decision (section it is
> in).
>
> The attached patch changes one case where we were looking at the
> variable name to use the section instead.
>
> I don't know what this arc pass is doing, so I am not sure how to test it.
>
> Cheers,
> Rafael
> <t.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list