This is an archive of the discontinued LLVM Phabricator instance.

[ms] Implement codegen for __leave.
ClosedPublic

Authored by thakis on Feb 11 2015, 5:14 PM.

Details

Reviewers
rnk
Summary

I tried a few different approaches, in the end I went with something that has a simple implementation and doesn't try to cleverly reuse labels that sometimes already exist in the right places.

I found PR22553 while writing the tests for this.

Diff Detail

Event Timeline

thakis updated this revision to Diff 19798.Feb 11 2015, 5:14 PM
thakis retitled this revision from to [ms] Implement codegen for __leave..
thakis updated this object.
thakis edited the test plan for this revision. (Show Details)
thakis added a reviewer: rnk.
thakis added a subscriber: Unknown Object (MLST).
thakis added inline comments.
lib/CodeGen/CGStmt.cpp
257

(Moving this around isn't strictly necessary, but it seems nice to keep this similar to the EmitGoto path.)

rnk accepted this revision.Feb 12 2015, 2:42 PM
rnk edited edge metadata.

lgtm

Thanks!

lib/CodeGen/CGException.cpp
1717–1721

LLVM tends to elide these braces. *shrug*

This revision is now accepted and ready to land.Feb 12 2015, 2:42 PM
thakis closed this revision.Feb 12 2015, 3:18 PM

r228977, thanks!

lib/CodeGen/CGException.cpp
1717–1721

Done.