aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-05 00:00:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-05 00:00:23 +0000
commit35e67d4387bbe3e7e17ee6b17eaa42eebb0eb9f1 (patch)
treefec9a698e2f79d78dc0ba88e40dd10fee55c6287 /lib/CodeGen
parentcf118d41f7930a18dce97416ef7834a62642f587 (diff)
Unbreak CGFunctionInfo::Profile method and reenable caching of ABI
information. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGCall.cpp4
-rw-r--r--lib/CodeGen/CGCall.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index a3dd877ce5..61c6653236 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -101,9 +101,7 @@ const CGFunctionInfo &CodeGenTypes::getFunctionInfo(QualType ResTy,
// 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());
diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h
index 562dfa9113..daf6f00045 100644
--- a/lib/CodeGen/CGCall.h
+++ b/lib/CodeGen/CGCall.h
@@ -84,6 +84,7 @@ namespace CodeGen {
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);
}