summaryrefslogtreecommitdiff
path: root/include
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
commit50f9696f1d8fac2ec4e99a12e4ba65276c8364c5 (patch)
tree6190bc74d972151f9f9d84faa4842f2e44f4ea49 /include
parent813d0a276112d79ba13a2cab9f785d1f18e6193d (diff)
downloadllvm-50f9696f1d8fac2ec4e99a12e4ba65276c8364c5.tar.gz
llvm-50f9696f1d8fac2ec4e99a12e4ba65276c8364c5.tar.bz2
llvm-50f9696f1d8fac2ec4e99a12e4ba65276c8364c5.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ProfileData/InstrProfReader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h
index d236fecdb6..a14bb4d5b1 100644
--- a/include/llvm/ProfileData/InstrProfReader.h
+++ b/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;