[cfe-commits] r111688 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Dan Gohman gohman at apple.com
Fri Aug 20 15:39:57 PDT 2010


Author: djg
Date: Fri Aug 20 17:39:57 2010
New Revision: 111688

URL: http://llvm.org/viewvc/llvm-project?rev=111688&view=rev
Log:
CreateTemporaryType doesn't needs its Context argument.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=111688&r1=111687&r2=111688&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Aug 20 17:39:57 2010
@@ -868,8 +868,7 @@
 
   // 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 @@
   // 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())





More information about the cfe-commits mailing list