llvm.org GIT mirror llvm / d6ac664
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 Diego Novillo 4 years ago
2 changed file(s) with 0 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
223223 uint64_t Count);
224224 std::error_code readOneFunctionProfile(const SourceStack &Stack, bool Update);
225225 std::error_code readFunctionProfiles();
226 std::error_code readModuleGroup();
227 std::error_code readWorkingSet();
228226 std::error_code skipNextWord();
229227 template ErrorOr readNumber();
230228 ErrorOr readString();
670670 return sampleprof_error::success;
671671 }
672672
673 std::error_code SampleProfileReaderGCC::readModuleGroup() {
674 // FIXME(dnovillo) - Module support still not implemented.
675 return sampleprof_error::not_implemented;
676 }
677
678 std::error_code SampleProfileReaderGCC::readWorkingSet() {
679 // FIXME(dnovillo) - Working sets still not implemented.
680 return sampleprof_error::not_implemented;
681 }
682
683673 /// \brief Read a GCC AutoFDO profile.
684674 ///
685675 /// This format is generated by the Linux Perf conversion tool at
692682 // Read the source profile.
693683 if (std::error_code EC = readFunctionProfiles())
694684 return EC;
695
696 // FIXME(dnovillo) - Module groups and working set support are not
697 // yet implemented.
698 #if 0
699 // Read the module group file.
700 if (std::error_code EC = readModuleGroup())
701 return EC;
702
703 // Read the working set.
704 if (std::error_code EC = readWorkingSet())
705 return EC;
706 #endif
707685
708686 return sampleprof_error::success;
709687 }