1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Print error messages from MemoryBuffer::getFile() in llvm-symbolizer

llvm-svn: 174346
This commit is contained in:
Alexey Samsonov 2013-02-05 07:01:34 +00:00
parent aee18ff695
commit c4a2f261a7

View File

@ -181,7 +181,8 @@ static bool getObjectEndianness(const ObjectFile *Obj,
static ObjectFile *getObjectFile(const std::string &Path) {
OwningPtr<MemoryBuffer> Buff;
MemoryBuffer::getFile(Path, Buff);
if (error_code ec = MemoryBuffer::getFile(Path, Buff))
error(ec);
return ObjectFile::createObjectFile(Buff.take());
}