1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/ProfileData
Kevin Enderby 945617b128 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error
when the object is from a slice of a Mach-O Universal Binary use something like
"foo.o (for architecture i386)" as part of the error message when expected.

Also fixed places in these tools that were ignoring object file errors from
MachOUniversalBinary::getAsObjectFile() when the code moved on to see if
the slice was an archive.

To do this MachOUniversalBinary::getAsObjectFile() and
MachOUniversalBinary::getObjectForArch() were changed from returning
ErrorOr<...> to Expected<...> then that was threaded up to its users.

Converting these interfaces to Expected<> from ErrorOr<> does involve
touching a number of places. To contain the changes for now the use of
errorToErrorCode() is still used in two places yet to be fully converted.

llvm-svn: 271332
2016-05-31 20:35:34 +00:00
..
Coverage Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
CMakeLists.txt Move ProfileSummary to IR. 2016-05-19 21:07:12 +00:00
InstrProf.cpp [ProfileData] Clean up string handling a bit. 2016-05-29 10:31:00 +00:00
InstrProfReader.cpp [ProfileData] Clean up string handling a bit. 2016-05-29 10:31:00 +00:00
InstrProfWriter.cpp [ProfileData] Thread unique_ptr through the summary builder to avoid leaks. 2016-05-20 09:18:37 +00:00
LLVMBuild.txt Move coverage related code into a separate library. 2016-04-29 18:53:05 +00:00
ProfileSummaryBuilder.cpp [ProfData] Remove global constructor from ProfileSummaryBuilder. 2016-05-27 17:38:16 +00:00
SampleProf.cpp Add FIXMEs to all derived classes of std::error_category. 2016-05-24 20:13:46 +00:00
SampleProfReader.cpp [ProfileData] Clean up string handling a bit. 2016-05-29 10:31:00 +00:00
SampleProfWriter.cpp [ProfileData] Thread unique_ptr through the summary builder to avoid leaks. 2016-05-20 09:18:37 +00:00