Update for llvm api change.

llvm-svn: 210204
This commit is contained in:
Rafael Espindola
2014-06-04 18:51:46 +00:00
parent 4dc5dfc56b
commit bb9e7a3d06
3 changed files with 4 additions and 4 deletions

View File

@@ -145,7 +145,7 @@ public:
struct Handler {
/// A type info value, or null (C++ null, not an LLVM null pointer)
/// for a catch-all.
llvm::Value *Type;
llvm::Constant *Type;
/// The catch handler for this type.
llvm::BasicBlock *Block;
@@ -183,7 +183,7 @@ public:
setHandler(I, /*catchall*/ nullptr, Block);
}
void setHandler(unsigned I, llvm::Value *Type, llvm::BasicBlock *Block) {
void setHandler(unsigned I, llvm::Constant *Type, llvm::BasicBlock *Block) {
assert(I < getNumHandlers());
getHandlers()[I].Type = Type;
getHandlers()[I].Block = Block;

View File

@@ -622,7 +622,7 @@ void CodeGenFunction::EnterCXXTryStmt(const CXXTryStmt &S, bool IsFnTryBlock) {
QualType CaughtType = C->getCaughtType();
CaughtType = CaughtType.getNonReferenceType().getUnqualifiedType();
llvm::Value *TypeInfo = nullptr;
llvm::Constant *TypeInfo = nullptr;
if (CaughtType->isObjCObjectPointerType())
TypeInfo = CGM.getObjCRuntime().GetEHType(CaughtType);
else

View File

@@ -149,7 +149,7 @@ namespace {
const VarDecl *Variable;
const Stmt *Body;
llvm::BasicBlock *Block;
llvm::Value *TypeInfo;
llvm::Constant *TypeInfo;
};
struct CallObjCEndCatch : EHScopeStack::Cleanup {