]> granicus.if.org Git - llvm/commit
Change GenericBinaryError to no longer include a FileName, which is then not
authorKevin Enderby <enderby@apple.com>
Fri, 6 May 2016 20:16:28 +0000 (20:16 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 6 May 2016 20:16:28 +0000 (20:16 +0000)
commiteaa1f084ce1a0ee2afb83bbd2f90e0056081ef2e
tree4217588ef6313c6b03cd6373d5056b047bb0d18a
parenta021eb7c7ac9b8c7a62922c66c658a97bb53b304
Change GenericBinaryError to no longer include a FileName, which is then not
part of the error message.

As the caller is the one that needs to add the name of where the "object file"
comes from to the error message as the object file could be in an archive, or
coming from a slice of a Mach-O universal file or a buffer created by a JIT.

In the cases of a Mach-O universal file the architecture name may or may not
also need to be printed which is up to the tool code.  For example if the tool
code is only selecting the host architecture slice then that architecture name
is never printed.

This patch is the change to the libObject code and there will be follow on
commits for changes to the code for each tool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268789 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/Error.h
lib/Object/Error.cpp
lib/Object/MachOObjectFile.cpp