summaryrefslogtreecommitdiffstats
path: root/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.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/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.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/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp')
-rw-r--r--lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
index 1a081d04658..d29e0baf27a 100644
--- a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
+++ b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
@@ -735,5 +735,6 @@ TEST(BinaryReaderTest, hello_obj_ppc) {
EXPECT_EQ(printfLabel.type, N_UNDF);
EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT));
- writeBinary(*f, "/tmp/foo.o");
+ auto ec = writeBinary(*f, "/tmp/foo.o");
+ EXPECT_FALSE(ec);
}
OpenPOWER on IntegriCloud