[WinEH] Set NoModuleLevelChanges in clone flags
authorJoseph Tremoulet <jotrem@microsoft.com>
Wed, 7 Oct 2015 19:29:56 +0000 (19:29 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Wed, 7 Oct 2015 19:29:56 +0000 (19:29 +0000)
commit0e0be5a9f9fc4283e1609d0475039a94ac69ecd0
treea5e7ee5fa32832d3c098f01fb0f70e058c701945
parentd546ca6a18fa62a4a8327d9733b2a5992d726910
[WinEH] Set NoModuleLevelChanges in clone flags

Summary:
This is necessary to keep the cloner from making bogus copies of debug
metadata attached to the IR it is cloning.
Also, avoid running RemapInstruction over all instructions in the common
case that no cloning was performed.

Reviewers: rnk, andrew.w.kaylor, majnemer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D13514

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249591 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
test/CodeGen/WinEH/wineh-cloning.ll