Move getMallocAllocatedType and getMallocArraySize to GlobalOpt [NFC]
authorPhilip Reames <listmail@philipreames.com>
Fri, 7 Jan 2022 00:48:45 +0000 (16:48 -0800)
committerPhilip Reames <listmail@philipreames.com>
Fri, 7 Jan 2022 02:02:13 +0000 (18:02 -0800)
commit7052670e962ec50587b95af71bfd8fe4877f9732
tree25af17e06ed0533eb6a3613649e895ecf8538db5
parent67a3331e4f6d339a09f07e823b4be8404a59d761
Move getMallocAllocatedType and getMallocArraySize to GlobalOpt [NFC]

These are implementation details of the global-opt transform and not easily reuseable, so remove them from the analysis header.
llvm/include/llvm/Analysis/MemoryBuiltins.h
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp