summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/LinkingContext.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-30 23:10:39 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-30 23:10:39 +0000
commitfefbd22814ce5ed3928cc38ad6be1bf7de013905 (patch)
treeec24b8690147ead2148f984b11ce77bfcdda5d2c /lld/lib/Core/LinkingContext.cpp
parent3fb963389e42941273d9c4eaa829fec8f18867c7 (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud