forked from OSchip/llvm-project
Unbreak CGFunctionInfo::Profile method and reenable caching of ABI
information. llvm-svn: 63799
This commit is contained in:
parent
fc5d067ea0
commit
fff09f335d
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue