clang-cl: Support /guard:cf,nochecks
ClosedPublic

Authored by hans on Aug 9 2018, 8:08 AM.

Details

Summary

This extension emits the guard cf table without inserting the instrumentation. Currently that's what clang-cl does with /guard:cf anyway, but this allows a user to request that explicitly.

Diff Detail

Repository
rL LLVM
hans created this revision.Aug 9 2018, 8:08 AM
hans added inline comments.
lib/CodeGen/CodeGenModule.cpp
463 ↗(On Diff #159927)

I'll update the LLVM side before landing this, but I think this name better explains what's being emitted.

rnk accepted this revision.Aug 9 2018, 2:11 PM

lgtm!

There is some additional work to do to put .gfids$y sections into appropriate comdat sections, but that's future work.

This revision is now accepted and ready to land.Aug 9 2018, 2:11 PM
This revision was automatically updated to reflect the committed changes.