mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
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:
parent
091c8253f5
commit
2b05ab77e3
@ -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;
|
||||
|
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user