mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
InstrProf: Move constructor to the header
Fixes 80-column violation at the same time. <rdar://problem/15950346> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
813d0a2761
commit
50f9696f1d
@ -161,7 +161,8 @@ private:
|
|||||||
RawInstrProfReader &operator=(const TextInstrProfReader &)
|
RawInstrProfReader &operator=(const TextInstrProfReader &)
|
||||||
LLVM_DELETED_FUNCTION;
|
LLVM_DELETED_FUNCTION;
|
||||||
public:
|
public:
|
||||||
RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer);
|
RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
|
||||||
|
: DataBuffer(std::move(DataBuffer)) { }
|
||||||
|
|
||||||
static bool hasFormat(const MemoryBuffer &DataBuffer);
|
static bool hasFormat(const MemoryBuffer &DataBuffer);
|
||||||
error_code readHeader() override;
|
error_code readHeader() override;
|
||||||
|
@ -85,9 +85,6 @@ error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) {
|
|||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
RawInstrProfReader::RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
|
|
||||||
: DataBuffer(std::move(DataBuffer)) { }
|
|
||||||
|
|
||||||
static uint64_t getRawMagic() {
|
static uint64_t getRawMagic() {
|
||||||
return
|
return
|
||||||
uint64_t(255) << 56 |
|
uint64_t(255) << 56 |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user