git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135042
91177308-0d34-0410-b5e6-
96231b3b80d8
FT = (FunctionType*) operator new(sizeof(FunctionType) +
sizeof(Type*)*(Params.size()+1));
new (FT) FunctionType(ReturnType, Params, isVarArg);
+
+ ReturnType->getContext().pImpl->FunctionTypes[Key] = FT;
}
return FT;
ST = new StructType(Context);
ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct.
ST->setBody(ETypes, isPacked);
+
+ Context.pImpl->AnonStructTypes[Key] = ST;
+
return ST;
}