InstrProf: Move constructor to the header

Fixes 80-column violation at the same time.

<rdar://problem/15950346>

llvm-svn: 204516
This commit is contained in:
Duncan P. N. Exon Smith 2014-03-21 20:59:19 +00:00
parent 8d02a2ac21
commit ae29f7a5ec
2 changed files with 2 additions and 4 deletions

View File

@ -161,7 +161,8 @@ private:
RawInstrProfReader &operator=(const TextInstrProfReader &)
LLVM_DELETED_FUNCTION;
public:
RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer);
RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
: DataBuffer(std::move(DataBuffer)) { }
static bool hasFormat(const MemoryBuffer &DataBuffer);
error_code readHeader() override;

View File

@ -85,9 +85,6 @@ error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) {
return success();
}
RawInstrProfReader::RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
: DataBuffer(std::move(DataBuffer)) { }
static uint64_t getRawMagic() {
return
uint64_t(255) << 56 |