Convert lld file writing to llvm::Error. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 30 Mar 2016 23:10:39 +0000 (23:10 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 30 Mar 2016 23:10:39 +0000 (23:10 +0000)
commitfefbd22814ce5ed3928cc38ad6be1bf7de013905
treeec24b8690147ead2148f984b11ce77bfcdda5d2c
parent3fb963389e42941273d9c4eaa829fec8f18867c7
Convert lld file writing to llvm::Error.  NFC.

This converts the writeFile method, as well as some of the ones it calls
in the normalized binary file writer and yaml writer.

llvm-svn: 264961
lld/include/lld/Core/LinkingContext.h
lld/include/lld/Core/Writer.h
lld/lib/Core/LinkingContext.cpp
lld/lib/Driver/DarwinLdDriver.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFile.h
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
lld/lib/ReaderWriter/MachO/WriterMachO.cpp
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp