[llvm] r204516 - InstrProf: Move constructor to the header
Duncan P. N. Exon Smith
dexonsmith at apple.com
Fri Mar 21 13:59:19 PDT 2014
Author: dexonsmith
Date: Fri Mar 21 15:59:19 2014
New Revision: 204516
URL: http://llvm.org/viewvc/llvm-project?rev=204516&view=rev
Log:
InstrProf: Move constructor to the header
Fixes 80-column violation at the same time.
<rdar://problem/15950346>
Modified:
llvm/trunk/include/llvm/ProfileData/InstrProfReader.h
llvm/trunk/lib/ProfileData/InstrProfReader.cpp
Modified: llvm/trunk/include/llvm/ProfileData/InstrProfReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/InstrProfReader.h?rev=204516&r1=204515&r2=204516&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProfReader.h (original)
+++ llvm/trunk/include/llvm/ProfileData/InstrProfReader.h Fri Mar 21 15:59:19 2014
@@ -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;
Modified: llvm/trunk/lib/ProfileData/InstrProfReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProfReader.cpp?rev=204516&r1=204515&r2=204516&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProfReader.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProfReader.cpp Fri Mar 21 15:59:19 2014
@@ -85,9 +85,6 @@ error_code TextInstrProfReader::readNext
return success();
}
-RawInstrProfReader::RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer)
- : DataBuffer(std::move(DataBuffer)) { }
-
static uint64_t getRawMagic() {
return
uint64_t(255) << 56 |
More information about the llvm-commits
mailing list