This is an archive of the discontinued LLVM Phabricator instance.

COFF: Simplify construction of safe SEH table. NFCI.
ClosedPublic

Authored by pcc on Nov 28 2017, 2:39 PM.

Details

Summary

Instead of building intermediate sets of exception handlers for each
object file, just create one for the final output file.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Nov 28 2017, 2:39 PM
ruiu accepted this revision.Nov 28 2017, 2:46 PM

LGTM. Nice!

lld/COFF/Writer.cpp
802 ↗(On Diff #124640)

You are creating a copy of ulittle32_t from ulittle32_t. I think it makes more sense if you change the type of I to ulittle32_t & or just uint32_t.

This revision is now accepted and ready to land.Nov 28 2017, 2:46 PM
pcc marked an inline comment as done.Nov 28 2017, 2:51 PM
This revision was automatically updated to reflect the committed changes.