InstrProf: Move constructor to the header
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 20:59:19 +0000 (20:59 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 20:59:19 +0000 (20:59 +0000)
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

include/llvm/ProfileData/InstrProfReader.h
lib/ProfileData/InstrProfReader.cpp

index d236fecdb63d360bf3d5cbcc564faab18dcee741..a14bb4d5b1d5ce7f669eb0a638c029c273bad26b 100644 (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;
index f923ad2ddd9cc95bb77db4b0548ee332196743c3..48e740eaf42223a6b51b7ecba6c595138c0d5f6a 100644 (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 |