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)
commit8e873329a1dbe298a861f79a0696fdb64f9cc25f
treead7b7a20cbdf44c853de6c124f731808cacbc4e3
parentadc9037b88e16c231879f9bfb76e6e3d3003398f
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

llvm-svn: 210215
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/MC/COFF/global_ctors_dtors.ll