[LLVMdev] Section specialization & COFF.

r4start r4start at gmail.com
Fri Oct 19 02:55:15 PDT 2012


Hi all.

While compiling next code
@A = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0 
}, section ".data"
was discovered that llc ignores weak linkage if we emit it in COFF object.
Attached patch solves this problem, please review.

I found some similar tests in test/Objects/Inputs. Should I do something 
like trivial.ll checking or there is a better way
to check patch behaviour?

  - Dmitry Sokolov.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: section.diff
Type: text/x-patch
Size: 1170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121019/1b8dd11e/attachment.bin>


More information about the llvm-dev mailing list