This is an archive of the discontinued LLVM Phabricator instance.

Move replaceAllUsesWith() from DIType to DIDescriptor.
ClosedPublic

Authored by friss on Sep 12 2014, 12:49 AM.

Details

Summary

RAUW was only used on DIType to merge declarations and full definitions
of types. In order to support the same functionality for functions and
global variables, move the function up type DI type hierarchy to the
common parent of DIType, DISubprogram and DIVariable which is
DIDescriptor.

This functionality will be exercized when we add the code to emit
imported declarations for forward declared function/variables.

Diff Detail

Repository
rL LLVM

Event Timeline

friss updated this revision to Diff 13616.Sep 12 2014, 12:49 AM
friss retitled this revision from to Move replaceAllUsesWith() from DIType to DIDescriptor..
friss added reviewers: echristo, dblaikie, aprantl.
friss updated this object.
friss added a subscriber: Unknown Object (MLST).
aprantl edited edge metadata.Sep 12 2014, 8:36 AM

Sounds reasonable. [+Duncan], as this will influence PR17891 & friends.

  • adrian
dblaikie accepted this revision.Sep 12 2014, 9:22 AM
dblaikie edited edge metadata.

Looks good to me

This revision is now accepted and ready to land.Sep 12 2014, 9:22 AM
echristo accepted this revision.Sep 12 2014, 11:38 AM
echristo edited edge metadata.

LGTM. Thanks.

friss closed this revision.Sep 15 2014, 1:00 AM
friss updated this revision to Diff 13694.

Closed by commit rL217748 (authored by @friss).