diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-17 07:09:17 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-17 07:09:17 +0000 |
commit | 1d7088d1d9dc99e5478c0184a3e21cafef2a0b53 (patch) | |
tree | 598b137c35656b077a098fbcc12d4bda2bcf4c1f /lib/CodeGen/CGException.cpp | |
parent | f2945c0a74ec15d4d171b34a98e7ef109b9b414b (diff) |
Rename GetAddrOfRTTI to GetAddrOfRTTIDescriptor. Remove the overload that takes a CXXRecordDecl since we were just creating a QualType from it anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGException.cpp')
-rw-r--r-- | lib/CodeGen/CGException.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/CGException.cpp b/lib/CodeGen/CGException.cpp index debebf20ae..caf0668d64 100644 --- a/lib/CodeGen/CGException.cpp +++ b/lib/CodeGen/CGException.cpp @@ -284,7 +284,7 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) { // Now throw the exception. const llvm::Type *Int8PtrTy = llvm::Type::getInt8PtrTy(getLLVMContext()); - llvm::Constant *TypeInfo = CGM.GetAddrOfRTTI(ThrowType); + llvm::Constant *TypeInfo = CGM.GetAddrOfRTTIDescriptor(ThrowType); llvm::Constant *Dtor = llvm::Constant::getNullValue(Int8PtrTy); if (getInvokeDest()) { @@ -367,7 +367,7 @@ void CodeGenFunction::EmitStartEHSpec(const Decl *D) { for (unsigned i = 0; i < Proto->getNumExceptions(); ++i) { QualType Ty = Proto->getExceptionType(i); - llvm::Value *EHType = CGM.GetAddrOfRTTI(Ty.getNonReferenceType()); + llvm::Value *EHType = CGM.GetAddrOfRTTIDescriptor(Ty.getNonReferenceType()); SelectorArgs.push_back(EHType); } if (Proto->getNumExceptions()) @@ -506,9 +506,9 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) { const CXXCatchStmt *C = S.getHandler(i); VarDecl *CatchParam = C->getExceptionDecl(); if (CatchParam) { - llvm::Value *EHType - = CGM.GetAddrOfRTTI(C->getCaughtType().getNonReferenceType()); - SelectorArgs.push_back(EHType); + llvm::Value *EHTypeInfo + = CGM.GetAddrOfRTTIDescriptor(C->getCaughtType().getNonReferenceType()); + SelectorArgs.push_back(EHTypeInfo); } else { // null indicates catch all SelectorArgs.push_back(Null); |