[cfe-commits] r63799 - in /cfe/trunk/lib/CodeGen: CGCall.cpp CGCall.h

Daniel Dunbar daniel at zuster.org
Wed Feb 4 16:00:23 PST 2009


Author: ddunbar
Date: Wed Feb  4 18:00:23 2009
New Revision: 63799

URL: http://llvm.org/viewvc/llvm-project?rev=63799&view=rev
Log:
Unbreak CGFunctionInfo::Profile method and reenable caching of ABI
information.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp
    cfe/trunk/lib/CodeGen/CGCall.h

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=63799&r1=63798&r2=63799&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Wed Feb  4 18:00:23 2009
@@ -101,9 +101,7 @@
 
   // Construct the function info.
   FI = new CGFunctionInfo(ResTy, ArgTys);
-
-  // FIXME: This is leaking like a sieve; please fix me.
-  //  FunctionInfos.InsertNode(FI, InsertPos);
+  FunctionInfos.InsertNode(FI, InsertPos);
 
   // Compute ABI information.
   getABIInfo().computeInfo(*FI, getContext());

Modified: cfe/trunk/lib/CodeGen/CGCall.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.h?rev=63799&r1=63798&r2=63799&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.h (original)
+++ cfe/trunk/lib/CodeGen/CGCall.h Wed Feb  4 18:00:23 2009
@@ -84,6 +84,7 @@
     const ABIArgInfo &getReturnInfo() const { return Args[0].info; }
 
     void Profile(llvm::FoldingSetNodeID &ID) {
+      getReturnType().Profile(ID);
       for (arg_iterator it = arg_begin(), ie = arg_end(); it != ie; ++it)
         it->type.Profile(ID);
     }





More information about the cfe-commits mailing list