Use simple section names for COMDAT sections on COFF.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Nov 2013 01:18:37 +0000 (01:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Nov 2013 01:18:37 +0000 (01:18 +0000)
commit823c9c725d23f7c57e82b004ad8a011dd6dc6603
treecd4d3a8bb7073f072e9fe6bc97b6ca18c9593754
parent72d1f9db27e3b5e20b65b95819acf842c3a11172
Use simple section names for COMDAT sections on COFF.

With this patch we use simple names for COMDAT sections (like .text or .bss).
This matches the MSVC behavior.

When merging it is the COMDAT symbol that is used to decide if two sections
should be merged, so there is no point in building a fancy name.

This survived a bootstrap on mingw32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/MCSectionCOFF.cpp
test/MC/COFF/tricky-names.ll
test/MC/COFF/weak-symbol.ll