1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/tools
Kevin Enderby ff9abf809b Next step along the way to getting good error messages for bad archives.
I consulted with Lang Hames on this work, and the goal was to add a bit
of "where" in the archive the error occurred along with what the error was.

So this step changes ArchiveMemberHeader into a class with a pointer
to the archive header and the parent archive.  Which allows the methods
in the ArchiveMemberHeader to determine which member the header is
for to include that information in the error message.

For this first step the "where" is just the offset to the member in the
archive.  The next step will be a new method on ArchiveMemberHeader
to get the full name, if possible, to be use in the error message.  Which
will now be possible as ArchiveMemberHeader contains a pointer to
the Archive with its string table and its size, etc. so the full name can
be determined from the header if it is valid.

Also this change adds the missing checks the archive header is actually
contained in the buffer and is not truncated, as well as if the terminating
characters are correct in the header.

And changes one error message in Archive::Child::getNext() where the
name or offset to member is now added.

llvm-svn: 276686
2016-07-25 20:36:36 +00:00
..
dsymutil
gold [ThinLTO/gold] Remove thin archive part of new test due to bot failures 2016-07-22 18:32:30 +00:00
llvm-ar test: relax the match on the timestamp 2016-07-05 01:14:53 +00:00
llvm-config
llvm-cov [llvm-cov] Don't copy stylesheets into index files 2016-07-22 20:49:23 +00:00
llvm-cxxdump
llvm-dwp
llvm-lit
llvm-lto
llvm-mc
llvm-nm
llvm-objdump Next step along the way to getting good error messages for bad archives. 2016-07-25 20:36:36 +00:00
llvm-pdbdump Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
llvm-profdata [llvm-profdata] Bring back reading profile data from STDIN. 2016-07-22 12:39:55 +00:00
llvm-readobj [lanai] Update ELF number to correspond to the assigned number. 2016-06-28 18:22:22 +00:00
llvm-size
llvm-split
llvm-symbolizer
lto
sancov
sanstats [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
yaml2obj [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00