llvm-6502/lib/ProfileData
Justin Bogner c0c2133484 InstrProf: Simplify the construction of BinaryCoverageReader
Creating BinaryCoverageReader is a strange and complicated dance where
the constructor sets error codes that member functions will later
read, and the object is in an invalid state if readHeader isn't
immediately called after construction.

Instead, make the constructor private and add a static create method
to do the construction properly. This also has the benefit of removing
readHeader completely and simplifying the interface of the object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230676 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-26 20:06:28 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
CoverageMapping.cpp InstrProf: Simplify the construction of BinaryCoverageReader 2015-02-26 20:06:28 +00:00
CoverageMappingReader.cpp InstrProf: Simplify the construction of BinaryCoverageReader 2015-02-26 20:06:28 +00:00
CoverageMappingWriter.cpp InstrProf: Use a stable sort when reading coverage regions 2015-02-04 00:12:18 +00:00
InstrProf.cpp
InstrProfIndexed.h [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
InstrProfReader.cpp Re-apply "InstrProf: Add unit tests for the profile reader and writer" 2015-02-18 01:58:17 +00:00
InstrProfWriter.cpp Re-apply "InstrProf: Add unit tests for the profile reader and writer" 2015-02-18 01:58:17 +00:00
LLVMBuild.txt
Makefile
SampleProf.cpp
SampleProfReader.cpp
SampleProfWriter.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00