This is an archive of the discontinued LLVM Phabricator instance.

[ms-cxxabi] Add CGCXXABI::NeedsBodylessEmission function.
Needs ReviewPublic

Authored by pcc on May 19 2013, 3:25 PM.

Details

Reviewers
rjmccall
Summary

This function returns true if the ABI requires that we emit a
definition for a given function, given that we don't have a body
for it in the TU.

Diff Detail

Event Timeline

LGTM for me with one suggestion,

but please note that I'm not an approver for this code, so talk to John for the final review.

lib/CodeGen/CGCXXABI.h
322

Would be nice to give an example of when it's needed, otherwise it's a bit cryptic.

rnk added a comment.Jun 5 2013, 9:45 AM

Also, pinging John since this is more interface-y.

lib/CodeGen/CGCXXABI.h
322

"bodyless emission" is confusing to me, but I can't invent a better name. So long as the doc comment explains that this only makes sense when we can do something like delegate to a different variant of the function expected to be emitted in some other TU, then this works for me.

timurrrr resigned from this revision.Mar 26 2015, 9:28 AM
timurrrr removed a reviewer: timurrrr.

Out of date?