Unbreak CGFunctionInfo::Profile method and reenable caching of ABI

information.

llvm-svn: 63799
This commit is contained in:
Daniel Dunbar 2009-02-05 00:00:23 +00:00
parent fc5d067ea0
commit fff09f335d
2 changed files with 2 additions and 3 deletions

View File

@ -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());

View File

@ -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);
}