diff options
author | Adrian McCarthy <amccarth@google.com> | 2018-01-09 23:49:30 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2018-01-09 23:49:30 +0000 |
commit | db2736ddd864925ddecf548b052464699445858f (patch) | |
tree | 950da220900c3cbb167b1c8e0be2e737c2ea64e1 /llvm/lib/MC/MCStreamer.cpp | |
parent | ea7caceedcc8d872bc31c141515ef2e3749ef659 (diff) | |
download | bcm5719-llvm-db2736ddd864925ddecf548b052464699445858f.tar.gz bcm5719-llvm-db2736ddd864925ddecf548b052464699445858f.zip |
Reland "Emit Function IDs table for Control Flow Guard"
Adds option /guard:cf to clang-cl and -cfguard to cc1 to emit function IDs
of functions that have their address taken into a section named .gfids$y for
compatibility with Microsoft's Control Flow Guard feature.
The original patch didn't have the lit.local.cfg file that restricts the new
test to x86, thus the new test was failing on the non-x86 bots.
Differential Revision: https://reviews.llvm.org/D40531
The reverts r322008, which was a revert of r322005.
This reverts commit a05b89f9aca70597dc79fe97bc49b50b51f525ba.
llvm-svn: 322136
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index a6784273aab..9dcd1e9101c 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -795,6 +795,8 @@ void MCStreamer::EmitWinCFIEndProlog(SMLoc Loc) { void MCStreamer::EmitCOFFSafeSEH(MCSymbol const *Symbol) { } +void MCStreamer::EmitCOFFSymbolIndex(MCSymbol const *Symbol) {} + void MCStreamer::EmitCOFFSectionIndex(MCSymbol const *Symbol) { } |