[llvm-commits] [dragonegg] r137474 - /dragonegg/trunk/src/Types.cpp

Chris Lattner sabre at nondot.org
Fri Aug 12 10:46:07 PDT 2011


Author: lattner
Date: Fri Aug 12 12:46:07 2011
New Revision: 137474

URL: http://llvm.org/viewvc/llvm-project?rev=137474&view=rev
Log:
convert dragonegg to use the new-new api for creating structs.

Modified:
    dragonegg/trunk/src/Types.cpp

Modified: dragonegg/trunk/src/Types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Types.cpp?rev=137474&r1=137473&r2=137474&view=diff
==============================================================================
--- dragonegg/trunk/src/Types.cpp (original)
+++ dragonegg/trunk/src/Types.cpp Fri Aug 12 12:46:07 2011
@@ -1780,8 +1780,8 @@
 
     // Otherwise this must be an incomplete type - return an opaque struct.
     assert(!TYPE_SIZE(type) && "Expected an incomplete type!");
-    return llvm_set_type(type, StructType::createNamed(Context,
-                                                     getDescriptiveName(type)));
+    return llvm_set_type(type, StructType::create(Context,
+                                                  getDescriptiveName(type)));
 
   case VECTOR_TYPE: {
     if (Type *Ty = getCachedType(type)) return Ty;
@@ -1977,7 +1977,7 @@
         continue;
       }
       // Otherwise register a placeholder for this type.
-      Ty = StructType::createNamed(Context, getDescriptiveName(some_type));
+      Ty = StructType::create(Context, getDescriptiveName(some_type));
       llvm_set_type(some_type, Ty);
     }
 





More information about the llvm-commits mailing list