Revert "[SampleFDO][NFC] Refactor SampleProfile.cpp"
authorMehdi Amini <joker.eph@gmail.com>
Tue, 16 Feb 2021 22:10:51 +0000 (22:10 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 16 Feb 2021 22:11:42 +0000 (22:11 +0000)
commitc761fe77bdca26eb1451b6bb5070599a696711cb
tree28ed7bfd883c4adac1f894c775e9924aecd0bc72
parentc3120291f43b9ad0e09d4bc574c004f13822edd5
Revert "[SampleFDO][NFC] Refactor SampleProfile.cpp"

This reverts commit 310b35304cdf5a230c042904655583c5532d3e91.
The build is broken with -DBUILD_SHARED_LIBS=ON :

lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfileLoaderBaseUtil.cpp.o: In function `llvm::sampleprofutil::callsiteIsHot(llvm::sampleprof::FunctionSamples const*, llvm::ProfileSummaryInfo*, bool)':
SampleProfileLoaderBaseUtil.cpp:(.text._ZN4llvm14sampleprofutil13callsiteIsHotEPKNS_10sampleprof15FunctionSamplesEPNS_18ProfileSummaryInfoEb+0x1a): undefined reference to `llvm::ProfileSummaryInfo::isColdCount(unsigned long) const'
SampleProfileLoaderBaseUtil.cpp:(.text._ZN4llvm14sampleprofutil13callsiteIsHotEPKNS_10sampleprof15FunctionSamplesEPNS_18ProfileSummaryInfoEb+0x28): undefined reference to `llvm::ProfileSummaryInfo::isHotCount(unsigned long) const'
...
llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h [deleted file]
llvm/include/llvm/ProfileData/SampleProfileLoaderBaseUtil.h [deleted file]
llvm/lib/ProfileData/CMakeLists.txt
llvm/lib/ProfileData/SampleProfileLoaderBaseUtil.cpp [deleted file]
llvm/lib/Transforms/IPO/SampleProfile.cpp