[PATCH] Use ErrorOr for the ::create factory on instrumented and sample profilers.
Diego Novillo
dnovillo at google.com
Sun Nov 2 12:37:27 PST 2014
Hi bogner,
As discussed in
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141027/242445.html,
the creation of reader and writer instances is better done using
ErrorOr. There are no functional changes, but several callers needed to
be adjusted.
http://reviews.llvm.org/D6076
Files:
include/llvm/ProfileData/InstrProfReader.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
lib/Transforms/Scalar/SampleProfile.cpp
tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6076.15676.patch
Type: text/x-patch
Size: 12451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141102/6ec6ffa5/attachment.bin>
More information about the llvm-commits
mailing list