================
@@ -858,12 +865,28 @@ const CGFunctionInfo
&CodeGenTypes::arrangeLLVMFunctionInfo(
// Construct the function info. We co-allocate the ArgInfos.
FI = CGFunctionInfo::create(CC, isInstanceMethod, isChainCall,
isDelegateCall,
info, paramInfos, resultType, argTypes,
required);
+
+ llvm::BumpPtrAllocator Alloc;
+ llvm::abi::TypeBuilder TB(Alloc);
+
+ QualTypeMapper Mapper(CGM.getContext(), Alloc);
----------------
nikic wrote:
We should share this across all functions rather than instantiating a new one
for each, otherwise the caching will be ineffective.
https://github.com/llvm/llvm-project/pull/140112
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits