Add codegen support for exception specifications. WIP.

llvm-svn: 90817
This commit is contained in:
Mike Stump
2009-12-07 23:38:24 +00:00
parent fb1654d467
commit 1d849219a5
3 changed files with 127 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
}
EmitFunctionEpilog(*CurFnInfo, ReturnValue);
EmitEndEHSpec(CurCodeDecl);
// If someone did an indirect goto, emit the indirect goto block at the end of
// the function.
@@ -215,6 +216,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
ReturnValue = CreateTempAlloca(ConvertType(RetTy), "retval");
}
EmitStartEHSpec(CurCodeDecl);
EmitFunctionProlog(*CurFnInfo, CurFn, Args);
// If any of the arguments have a variably modified type, make sure to