]> granicus.if.org Git - llvm/commit
[WinEH] Adjust decision to emit SEH moves for leaf functions
authorReid Kleckner <rnk@google.com>
Mon, 20 Mar 2017 17:45:59 +0000 (17:45 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 20 Mar 2017 17:45:59 +0000 (17:45 +0000)
commit3993050daa60a8d5265c64800157c64585495fcc
treec605cd7e7de5afab47e200a28618abb9c99e816b
parent80122f82f9d083a141360962f993667195ebc104
[WinEH] Adjust decision to emit SEH moves for leaf functions

Move the check for "MF->hasWinCFI()" up into the calculation of the
shouldEmitMoves boolean, rather than putting it in the early returning
if. This ensures that endFunction doesn't try to emit .seh_* directives
for leaf functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298276 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/WinException.cpp
test/CodeGen/X86/win64_eh_leaf2.ll [new file with mode: 0644]