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

View File

@ -480,7 +480,7 @@ protected:
std::error_code readSecHdrTableEntry(); std::error_code readSecHdrTableEntry();
std::error_code readSecHdrTable(); std::error_code readSecHdrTable();
virtual std::error_code readHeader() override; 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: public:
SampleProfileReaderExtBinaryBase(std::unique_ptr<MemoryBuffer> B, SampleProfileReaderExtBinaryBase(std::unique_ptr<MemoryBuffer> B,

View File

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