mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Change createObjectFile to return an ErrorOr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -263,12 +263,12 @@ bool DWARFUnit::parseDWO() {
|
||||
sys::path::append(AbsolutePath, CompilationDir);
|
||||
}
|
||||
sys::path::append(AbsolutePath, DWOFileName);
|
||||
object::ObjectFile *DWOFile =
|
||||
ErrorOr<object::ObjectFile *> DWOFile =
|
||||
object::ObjectFile::createObjectFile(AbsolutePath);
|
||||
if (!DWOFile)
|
||||
return false;
|
||||
// Reset DWOHolder.
|
||||
DWO.reset(new DWOHolder(DWOFile));
|
||||
DWO.reset(new DWOHolder(DWOFile.get()));
|
||||
DWARFUnit *DWOCU = DWO->getUnit();
|
||||
// Verify that compile unit in .dwo file is valid.
|
||||
if (DWOCU == 0 || DWOCU->getDWOId() != getDWOId()) {
|
||||
|
Reference in New Issue
Block a user