[lld] r199777 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jan 21 16:14:56 PST 2014
Author: rafael
Date: Tue Jan 21 18:14:56 2014
New Revision: 199777
URL: http://llvm.org/viewvc/llvm-project?rev=199777&view=rev
Log:
Update for llvm api change.
Modified:
lld/trunk/lib/ReaderWriter/FileArchive.cpp
Modified: lld/trunk/lib/ReaderWriter/FileArchive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/FileArchive.cpp?rev=199777&r1=199776&r2=199777&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/FileArchive.cpp (original)
+++ lld/trunk/lib/ReaderWriter/FileArchive.cpp Tue Jan 21 18:14:56 2014
@@ -113,7 +113,10 @@ protected:
}
error_code isDataSymbol(MemoryBuffer *mb, StringRef symbol) const {
- std::unique_ptr<ObjectFile> obj(ObjectFile::createObjectFile(mb));
+ auto objOrErr(ObjectFile::createObjectFile(mb));
+ if (auto ec = objOrErr.getError())
+ return ec;
+ std::unique_ptr<ObjectFile> obj(objOrErr.get());
error_code ec;
SymbolRef::Type symtype;
uint32_t symflags;
More information about the llvm-commits
mailing list