Don't emit structors for available_externally globals (PR19933)
authorHans Wennborg <hans@hanshq.net>
Wed, 4 Jun 2014 21:04:54 +0000 (21:04 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 4 Jun 2014 21:04:54 +0000 (21:04 +0000)
commit6248abf28d3f1e0c010e519715c416b9d19b9c76
tree716ccf0cad7588f439fc3a7c8ad26969903baf51
parentcfee6c49ea9186bd397766f51706521ff3dfa57f
Don't emit structors for available_externally globals (PR19933)

We would previously assert here when trying to figure out the section
for the global.

This makes us handle the situation more gracefully since the IR isn't
malformed.

Differential Revision: http://reviews.llvm.org/D4022

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210215 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/MC/COFF/global_ctors_dtors.ll