[llvm-commits] [dragonegg] r135875 - /dragonegg/trunk/src/DefaultABI.cpp

Duncan Sands baldrick at free.fr
Sun Jul 24 08:44:16 PDT 2011


Author: baldrick
Date: Sun Jul 24 10:44:16 2011
New Revision: 135875

URL: http://llvm.org/viewvc/llvm-project?rev=135875&view=rev
Log:
Port the relevant part of commit 134710 (lattner) from llvm-gcc.
Original changelog entry:
greatly simplify the llvm.pch.types logic, eliminating the need to apply names to all the types.
This also eliminates use of TypeSymbolTable.h which is going away.

Modified:
    dragonegg/trunk/src/DefaultABI.cpp

Modified: dragonegg/trunk/src/DefaultABI.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/DefaultABI.cpp?rev=135875&r1=135874&r2=135875&view=diff
==============================================================================
--- dragonegg/trunk/src/DefaultABI.cpp (original)
+++ dragonegg/trunk/src/DefaultABI.cpp Sun Jul 24 10:44:16 2011
@@ -190,8 +190,8 @@
   // not include variable sized fields here.
   std::vector<Type*> Elts;
   if (Ty->isVoidTy()) {
-    // Handle void explicitly as an opaque type.
-    Type *OpTy = OpaqueType::get(getGlobalContext());
+    // Handle void explicitly as a {} type.
+    Type *OpTy = StructType::get(getGlobalContext());
     C.HandleScalarArgument(OpTy, type);
     ScalarElts.push_back(OpTy);
   } else if (isPassedByInvisibleReference(type)) { // variable size -> by-ref.





More information about the llvm-commits mailing list