]> granicus.if.org Git - clang/commitdiff
CreateTemporaryType doesn't needs its Context argument.
authorDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 22:39:57 +0000 (22:39 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 20 Aug 2010 22:39:57 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111688 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 1e287172cf8c34812b833fe79eb9822a76ee40be..b9b970a3cf825f52617c4fada70ced43467e6f0a 100644 (file)
@@ -868,8 +868,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty,
 
   // A RD->getName() is not unique. However, the debug info descriptors 
   // are uniqued so use type name to ensure uniquness.
-  llvm::DIType FwdDecl =
-    DebugFactory.CreateTemporaryType(FDContext);
+  llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType();
 
   llvm::MDNode *MN = FwdDecl;
   llvm::TrackingVH<llvm::MDNode> FwdDeclNode = MN;
@@ -986,7 +985,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
   // its members.  Finally, we create a descriptor for the complete type (which
   // may refer to the forward decl if the struct is recursive) and replace all
   // uses of the forward declaration with the final definition.
-  llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(Unit);
+  llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType();
 
   // If this is just a forward declaration, return it.
   if (ID->isForwardDecl())