summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:59:19 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:59:19 +0000
commitae29f7a5ec459e3e555bce27098d3393198602f8 (patch)
tree203f4bb8e96d1c96d587f44b22f48135caf2d6f3
parent8d02a2ac2119b773f88a210008301f3c3439d75d (diff)
downloadbcm5719-llvm-ae29f7a5ec459e3e555bce27098d3393198602f8.tar.gz
bcm5719-llvm-ae29f7a5ec459e3e555bce27098d3393198602f8.zip
InstrProf: Move constructor to the header
Fixes 80-column violation at the same time. <rdar://problem/15950346> llvm-svn: 204516
-rw-r--r--llvm/include/llvm/ProfileData/InstrProfReader.h3
-rw-r--r--llvm/lib/ProfileData/InstrProfReader.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/ProfileData/InstrProfReader.h b/llvm/include/llvm/ProfileData/InstrProfReader.h
index d236fecdb63..a14bb4d5b1d 100644
--- a/llvm/include/llvm/ProfileData/InstrProfReader.h
+++ b/llvm/include/llvm/ProfileData/InstrProfReader.h
@@ -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;
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index f923ad2ddd9..48e740eaf42 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -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 |
OpenPOWER on IntegriCloud