]> granicus.if.org Git - llvm/commit
Simplify writeArchive return type.
authorRui Ueyama <ruiu@google.com>
Wed, 30 Aug 2017 22:11:03 +0000 (22:11 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 30 Aug 2017 22:11:03 +0000 (22:11 +0000)
commitaa892fdd036014742dca7a42e49f14c49feb657c
tree5fd90c796bf2f5efdc3ad7493f7055b0fc44330a
parent564f4d8415a6a8c70ab7137a98c7de6b9b7eeb71
Simplify writeArchive return type.

writeArchive returned a pair, but the first element of the pair is always
its first argument on failure, so it doesn't make sense to return it from
the function. This patch change the return type so that it does't return it.

Differential Revision: https://reviews.llvm.org/D37313

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312177 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ArchiveWriter.h
lib/Object/ArchiveWriter.cpp
lib/Object/COFFImportFile.cpp
lib/ToolDrivers/llvm-lib/LibDriver.cpp
tools/llvm-ar/llvm-ar.cpp