]> granicus.if.org Git - clang/commitdiff
Update for llvm api change.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Jun 2014 18:51:46 +0000 (18:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 4 Jun 2014 18:51:46 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210204 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCleanup.h
lib/CodeGen/CGException.cpp
lib/CodeGen/CGObjCRuntime.cpp

index 066cdb2a07289301805fe1bf3b2d9d7c1a22bcac..1d4606f136691cb320d76cfefbde73cdd86c176f 100644 (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;
index 9fa478ce78b6ee1f7af9de10c95d1de1fc93caa9..0938e830e3e4ab51b3f22e6cd897daec970e7fc0 100644 (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
index 1a5db9b14116d9e881352172860b2b31ef113b02..3d013da51e653307766558abfcfcdcd19a55dc82 100644 (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 {