Clean up of libObject/Archive interfaces and change the last three uses of ErrorOr<>
authorKevin Enderby <enderby@apple.com>
Wed, 3 Aug 2016 21:57:47 +0000 (21:57 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 3 Aug 2016 21:57:47 +0000 (21:57 +0000)
commit27e85bd0a6308e7b7f4d8b1b9c7ba445485ec71b
tree77dedd37bdafd66016b94b858d30ffcb00e183b2
parent9584d18d485c67e57830a8141d84863cdc24ec8e
Clean up of libObject/Archive interfaces and change the last three uses of ErrorOr<>
changing them to Expected<> to allow them to pass through llvm Errors.
No functional change.

This commit by itself will break the next lld builds.  I’ll be committing the
matching change for lld immediately next.

llvm-svn: 277656
llvm/include/llvm/Object/Archive.h
llvm/lib/Object/Archive.cpp
llvm/tools/llvm-ar/llvm-ar.cpp
llvm/tools/llvm-nm/llvm-nm.cpp