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:
parent
aee18ff695
commit
c4a2f261a7
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user