Fix NameAnonFunctions pass: for ThinLTO we need to rename global variables as well
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 16 Sep 2016 16:56:25 +0000 (16:56 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 16 Sep 2016 16:56:25 +0000 (16:56 +0000)
commit2cac787919393548dcc762f4a37a16fac1f6a3ad
tree486d8ddc1922b26394bc0ed75d1fbf145eac3e7e
parent10494b268239b2ccd4757920d6307a1be5e7f855
Fix NameAnonFunctions pass: for ThinLTO we need to rename global variables as well

A follow-up patch will rename this pass and the source file accordingly,
but I figured the non-NFC change will be easier to spot in isolation.

Differential Revision: https://reviews.llvm.org/D24641

llvm-svn: 281744
llvm/lib/Transforms/Utils/NameAnonFunctions.cpp
llvm/test/Transforms/NameAnonFunctions/rename.ll