mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Print error messages from MemoryBuffer::getFile() in llvm-symbolizer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174346 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1b6b52903
commit
933b851485
@ -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…
x
Reference in New Issue
Block a user