mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
Fix rtti generation for throws. WIP.
llvm-svn: 89420
This commit is contained in:
@@ -84,15 +84,7 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) {
|
||||
|
||||
// Now throw the exception.
|
||||
const llvm::Type *Int8PtrTy = llvm::Type::getInt8PtrTy(getLLVMContext());
|
||||
|
||||
llvm::SmallString<256> OutName;
|
||||
llvm::raw_svector_ostream Out(OutName);
|
||||
mangleCXXRtti(CGM.getMangleContext(), ThrowType, Out);
|
||||
|
||||
// FIXME: Is it OK to use CreateRuntimeVariable for this?
|
||||
llvm::Constant *TypeInfo =
|
||||
CGM.CreateRuntimeVariable(llvm::Type::getInt8Ty(getLLVMContext()),
|
||||
OutName.c_str());
|
||||
llvm::Constant *TypeInfo = CGM.GenerateRtti(ThrowType);
|
||||
llvm::Constant *Dtor = llvm::Constant::getNullValue(Int8PtrTy);
|
||||
|
||||
llvm::CallInst *ThrowCall =
|
||||
|
||||
Reference in New Issue
Block a user