From d6ac66492ecb62277a6f863647bfe5f98b84dab2 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 5 Oct 2015 21:08:05 +0000 Subject: [PATCH] Remove AutoFDO profile handling for GCC's LIPO. NFC. Given the work we are doing on ThinLTO, we will never need to support module groups and working sets in GCC's implementation of LIPO. These are currently dead code, and will continue to be so. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249351 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ProfileData/SampleProfReader.h | 2 -- lib/ProfileData/SampleProfReader.cpp | 22 --------------------- 2 files changed, 24 deletions(-) diff --git a/include/llvm/ProfileData/SampleProfReader.h b/include/llvm/ProfileData/SampleProfReader.h index 770d25ea52a..87c871f855b 100644 --- a/include/llvm/ProfileData/SampleProfReader.h +++ b/include/llvm/ProfileData/SampleProfReader.h @@ -224,8 +224,6 @@ protected: uint64_t Count); std::error_code readOneFunctionProfile(const SourceStack &Stack, bool Update); std::error_code readFunctionProfiles(); - std::error_code readModuleGroup(); - std::error_code readWorkingSet(); std::error_code skipNextWord(); template ErrorOr readNumber(); ErrorOr readString(); diff --git a/lib/ProfileData/SampleProfReader.cpp b/lib/ProfileData/SampleProfReader.cpp index 9b579e6319d..94f87996bea 100644 --- a/lib/ProfileData/SampleProfReader.cpp +++ b/lib/ProfileData/SampleProfReader.cpp @@ -671,16 +671,6 @@ SampleProfileReaderGCC::readOneFunctionProfile(const SourceStack &Stack, return sampleprof_error::success; } -std::error_code SampleProfileReaderGCC::readModuleGroup() { - // FIXME(dnovillo) - Module support still not implemented. - return sampleprof_error::not_implemented; -} - -std::error_code SampleProfileReaderGCC::readWorkingSet() { - // FIXME(dnovillo) - Working sets still not implemented. - return sampleprof_error::not_implemented; -} - /// \brief Read a GCC AutoFDO profile. /// /// This format is generated by the Linux Perf conversion tool at @@ -694,18 +684,6 @@ std::error_code SampleProfileReaderGCC::read() { if (std::error_code EC = readFunctionProfiles()) return EC; -// FIXME(dnovillo) - Module groups and working set support are not -// yet implemented. -#if 0 - // Read the module group file. - if (std::error_code EC = readModuleGroup()) - return EC; - - // Read the working set. - if (std::error_code EC = readWorkingSet()) - return EC; -#endif - return sampleprof_error::success; }