From: Duncan P. N. Exon Smith Date: Fri, 21 Mar 2014 20:59:19 +0000 (+0000) Subject: InstrProf: Move constructor to the header X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=50f9696f1d8fac2ec4e99a12e4ba65276c8364c5;p=oota-llvm.git InstrProf: Move constructor to the header Fixes 80-column violation at the same time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204516 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h index d236fecdb63..a14bb4d5b1d 100644 --- a/include/llvm/ProfileData/InstrProfReader.h +++ b/include/llvm/ProfileData/InstrProfReader.h @@ -161,7 +161,8 @@ private: RawInstrProfReader &operator=(const TextInstrProfReader &) LLVM_DELETED_FUNCTION; public: - RawInstrProfReader(std::unique_ptr DataBuffer); + RawInstrProfReader(std::unique_ptr DataBuffer) + : DataBuffer(std::move(DataBuffer)) { } static bool hasFormat(const MemoryBuffer &DataBuffer); error_code readHeader() override; diff --git a/lib/ProfileData/InstrProfReader.cpp b/lib/ProfileData/InstrProfReader.cpp index f923ad2ddd9..48e740eaf42 100644 --- a/lib/ProfileData/InstrProfReader.cpp +++ b/lib/ProfileData/InstrProfReader.cpp @@ -85,9 +85,6 @@ error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { return success(); } -RawInstrProfReader::RawInstrProfReader(std::unique_ptr DataBuffer) - : DataBuffer(std::move(DataBuffer)) { } - static uint64_t getRawMagic() { return uint64_t(255) << 56 |