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
This commit is contained in:
Duncan P. N. Exon Smith
2014-03-21 20:42:31 +00:00
parent ebaeaa934e
commit bb56c4808e
2 changed files with 33 additions and 34 deletions

View File

@@ -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;