diff options
author | Pete Cooper <peter_cooper@apple.com> | 2016-03-30 23:10:39 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2016-03-30 23:10:39 +0000 |
commit | fefbd22814ce5ed3928cc38ad6be1bf7de013905 (patch) | |
tree | ec24b8690147ead2148f984b11ce77bfcdda5d2c /lld/lib/Core/LinkingContext.cpp | |
parent | 3fb963389e42941273d9c4eaa829fec8f18867c7 (diff) | |
download | bcm5719-llvm-fefbd22814ce5ed3928cc38ad6be1bf7de013905.tar.gz bcm5719-llvm-fefbd22814ce5ed3928cc38ad6be1bf7de013905.zip |
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
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r-- | lld/lib/Core/LinkingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 1671c57bea8..2732543d306 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -23,7 +23,7 @@ bool LinkingContext::validate(raw_ostream &diagnostics) { return validateImpl(diagnostics); } -std::error_code LinkingContext::writeFile(const File &linkedFile) const { +llvm::Error LinkingContext::writeFile(const File &linkedFile) const { return this->writer().writeFile(linkedFile, _outputPath); } |