This is an archive of the discontinued LLVM Phabricator instance.

Mangle predefined string constants names to merge them at link-time
ClosedPublic

Authored by samsonov on Jun 4 2014, 2:12 PM.

Details

Summary

This change generalizes the code used to create global LLVM
variables referencing predefined strings (e.g. FUNCTION): now it
just calls GetAddrOfConstantStringFromLiteral method. As a result,
global variables for these predefined strings may get mangled names
and linkonce_odr linkage. Fix the test accordingly.

Diff Detail

Event Timeline

samsonov updated this revision to Diff 10104.Jun 4 2014, 2:12 PM
samsonov retitled this revision from to Mangle predefined string constants names to merge them at link-time.
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added a reviewer: majnemer.
samsonov added a subscriber: Unknown Object (MLST).
majnemer accepted this revision.Jun 4 2014, 9:30 PM
majnemer edited edge metadata.

This is compatible with MSVC, LGTM.

This revision is now accepted and ready to land.Jun 4 2014, 9:30 PM
samsonov closed this revision.Jun 5 2014, 2:01 PM