Properly implement exception chaining

This commit is contained in:
Alexey Prokhin
2013-06-18 11:41:33 +04:00
parent 49f8cfe99e
commit 09c471ae74
5 changed files with 45 additions and 12 deletions

View File

@@ -898,6 +898,14 @@ static void LLVM_D_BuildRuntimeModule()
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
}
// void _d_eh_handle_collision(ptr exc_struct, ptr exc_struct)
{
llvm::StringRef fname("_d_eh_handle_collision");
LLType *types[] = { voidPtrTy, voidPtrTy };
LLFunctionType* fty = llvm::FunctionType::get(voidTy, types, false);
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
}
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////