This is an archive of the discontinued LLVM Phabricator instance.

Instructions: add missing anchors. NFC
AbandonedPublic

Authored by thegameg on Feb 19 2016, 4:22 PM.

Details

Summary

FCmpInst, ExtractValueInst and InsertValueInst have no anchor functions. This
causes the vtable and the type info (if RTTI is enabled in user code) to
be emitted in multiple translation units (and the Coding Standards
enforce the presence of an anchor method).

The problem has occured here:
http://lists.llvm.org/pipermail/llvm-dev/2016-February/095654.html

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg updated this revision to Diff 48555.Feb 19 2016, 4:22 PM
thegameg retitled this revision from to Instructions: add missing anchors. NFC.
thegameg updated this object.
thegameg added reviewers: pete, rnk.
thegameg added a subscriber: llvm-commits.
jlebar accepted this revision.Feb 29 2016, 2:10 PM
jlebar edited edge metadata.
This revision is now accepted and ready to land.Feb 29 2016, 2:10 PM

Thanks for the review. I don't have commit rights, can you commit this for me?

@jlebar: Would you mind committing this for me, please?

Looks like patch was not committed.

rnk edited edge metadata.Sep 30 2016, 11:31 AM

IMO rather than anchoring the vtables we should remove them completely. The only virtual method left is the destructor, and we can switch-ify that.

thegameg abandoned this revision.May 10 2017, 9:25 AM