SymbolRewriter: allow rewriting with comdats
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 27 Jan 2015 22:57:39 +0000 (22:57 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 27 Jan 2015 22:57:39 +0000 (22:57 +0000)
commit08aea7d1b6931cb9e2a99ec02ba43e6d964d4ccd
tree4b5ccaef034f57e366a9c23076787f46e49b3534
parenta99980771670fd733d795403de8ed43ce3bc7791
SymbolRewriter: allow rewriting with comdats

COMDATs must be identically named to the symbol.  When support for COMDATs was
introduced, the symbol rewriter was not updated, resulting in rewriting failing
for symbols which were placed into COMDATs.  This corrects the behaviour and
adds test cases for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SymbolRewriter.cpp
test/SymbolRewriter/rewrite.ll
test/SymbolRewriter/rewrite.map