This is an archive of the discontinued LLVM Phabricator instance.

[GlobalObject] Fix setSection("")
ClosedPublic

Authored by loladiro on Feb 9 2017, 3:37 PM.

Details

Summary

In rL291613, the section name was interned in LLVMContext. However,
this broke the ability to remove the section from a GlobalObject,
because it tried to intern empty strings, which is not allowed.
Fix that and add an appropriate regression test.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.Feb 9 2017, 3:37 PM
rnk accepted this revision.Feb 13 2017, 7:49 AM

Lgtm

This revision is now accepted and ready to land.Feb 13 2017, 7:49 AM
This revision was automatically updated to reflect the committed changes.