[patch] Don't make assumptions about the name of private global variables
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Nov 10 14:08:44 PST 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 1206 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141110/7a2709d2/attachment.bin>
More information about the llvm-commits
mailing list