Auto upgrade the old EH scheme to use the new one. This is on a trial basis. If

things to disasterously over night, this can be reverted.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2011-08-27 06:11:03 +00:00
parent 8592a0cda4
commit df77a71790
3 changed files with 109 additions and 35 deletions

View File

@@ -120,6 +120,9 @@ bool LLParser::ValidateEndOfModule() {
for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; )
UpgradeCallsToIntrinsic(FI++); // must be post-increment, as we remove
// Upgrade to new EH scheme. N.B. This will go away in 3.1.
UpgradeExceptionHandling(M);
// Check debug info intrinsics.
CheckDebugInfoIntrinsics(M);
return false;