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
This commit is contained in:
Diego Novillo 2015-10-05 21:08:05 +00:00
parent 6212b4d0b8
commit d6ac66492e
2 changed files with 0 additions and 24 deletions

View File

@ -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 <typename T> ErrorOr<T> readNumber();
ErrorOr<StringRef> readString();

View File

@ -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;
}