This is an archive of the discontinued LLVM Phabricator instance.

Don't emit structors for available_externally globals (PR19933)
ClosedPublic

Authored by hans on Jun 4 2014, 1:48 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 10103.Jun 4 2014, 1:48 PM
hans retitled this revision from to Don't emit structors for available_externally globals (PR19933).
hans updated this object.
hans edited the test plan for this revision. (Show Details)
hans added a reviewer: rnk.
hans added subscribers: Unknown Object (MLST), hansw.
rnk accepted this revision.Jun 4 2014, 2:07 PM
rnk edited edge metadata.

lgtm

lib/CodeGen/AsmPrinter/AsmPrinter.cpp
1354 ↗(On Diff #10103)

This should briefly explain why, with something like:
// If the associated variable is available_externally, some other TU will provide its dynamic initializer.

This revision is now accepted and ready to land.Jun 4 2014, 2:07 PM
hans closed this revision.Jun 4 2014, 2:12 PM
hans updated this revision to Diff 10105.

Closed by commit rL210215 (authored by @hans).