llvm/include
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
..
llvm InstrProf: Simplify the construction of BinaryCoverageReader 2015-02-26 20:06:28 +00:00
llvm-c [LTO API] add lto_codegen_set_module to set the destination module. 2015-02-24 00:45:56 +00:00