summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:31 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:31 +0000
commitbb56c4808ef72a6329a599bde994c89abbfc2b34 (patch)
tree323ce2e3963827b34304d87dfed43731d49e4b90 /include
parentebaeaa934e6c581689edf6acd43d1c6e56d9ab08 (diff)
downloadllvm-bb56c4808ef72a6329a599bde994c89abbfc2b34.tar.gz
llvm-bb56c4808ef72a6329a599bde994c89abbfc2b34.tar.bz2
llvm-bb56c4808ef72a6329a599bde994c89abbfc2b34.tar.xz
InstrProf: Detect magic numbers in a more scalable way
No functionality change. <rdar://problem/15950346> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ProfileData/InstrProfReader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ProfileData/InstrProfReader.h b/include/llvm/ProfileData/InstrProfReader.h
index e2c59cf186..3cfbf805a5 100644
--- a/include/llvm/ProfileData/InstrProfReader.h
+++ b/include/llvm/ProfileData/InstrProfReader.h
@@ -163,6 +163,7 @@ private:
public:
RawInstrProfReader(std::unique_ptr<MemoryBuffer> &DataBuffer);
+ static bool hasFormat(const MemoryBuffer &DataBuffer);
error_code readHeader() override;
error_code readNextRecord(InstrProfRecord &Record) override;