summaryrefslogtreecommitdiffstats
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
commitfff09f335dbecde1232e090066b4b7bf9a9a30fe (patch)
tree870dc39fcc3937ec9a72623a6c402909c321eb25
parentfc5d067ea092a9e960a091f5f55b93ec41e7ad2a (diff)
downloadbcm5719-llvm-fff09f335dbecde1232e090066b4b7bf9a9a30fe.tar.gz
bcm5719-llvm-fff09f335dbecde1232e090066b4b7bf9a9a30fe.zip
Unbreak CGFunctionInfo::Profile method and reenable caching of ABI
information. llvm-svn: 63799
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
-rw-r--r--clang/lib/CodeGen/CGCall.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index a3dd877ce58..61c6653236d 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/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/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h
index 562dfa91132..daf6f000450 100644
--- a/clang/lib/CodeGen/CGCall.h
+++ b/clang/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);
}
OpenPOWER on IntegriCloud