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/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.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/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp')
-rw-r--r-- | lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp | 3 |
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); } |