Fix some warnings introduced by r369798.

llvm-svn: 369799
This commit is contained in:
Wei Mi 2019-08-23 19:39:12 +00:00
parent be9073249e
commit f491d86393
2 changed files with 5 additions and 5 deletions
llvm/include/llvm/ProfileData

View File

@ -480,7 +480,7 @@ protected:
std::error_code readSecHdrTableEntry();
std::error_code readSecHdrTable();
virtual std::error_code readHeader() override;
virtual std::error_code verifySPMagic(uint64_t Magic) = 0;
virtual std::error_code verifySPMagic(uint64_t Magic) override = 0;
public:
SampleProfileReaderExtBinaryBase(std::unique_ptr<MemoryBuffer> B,

View File

@ -109,12 +109,12 @@ private:
/// Sample-based profile writer (binary format).
class SampleProfileWriterBinary : public SampleProfileWriter {
public:
virtual std::error_code writeSample(const FunctionSamples &S) override;
protected:
SampleProfileWriterBinary(std::unique_ptr<raw_ostream> &OS)
: SampleProfileWriter(OS) {}
virtual std::error_code writeSample(const FunctionSamples &S) override;
protected:
virtual std::error_code writeMagicIdent(SampleProfileFormat Format);
virtual std::error_code writeNameTable();
virtual std::error_code
@ -176,7 +176,7 @@ class SampleProfileWriterExtBinary : public SampleProfileWriterExtBinaryBase {
using SampleProfileWriterExtBinaryBase::SampleProfileWriterExtBinaryBase;
private:
virtual void initSectionLayout() {
virtual void initSectionLayout() override {
SectionLayout = {SecProfSummary, SecNameTable, SecLBRProfile};
};
virtual std::error_code