Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #689 from dotnet/mergetest
Browse files Browse the repository at this point in the history
Modify SymbolRef getName and getAddress calls for new signature.
  • Loading branch information
richardlford committed Jul 6, 2015
2 parents 5135e5b + a401825 commit a4c4bc7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/Jit/LLILCJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,16 @@ void ObjectLoadListener::getDebugInfoForObject(
continue;

// Function info
StringRef Name;
uint64_t Addr;
if (Symbol.getName(Name))
continue;
if (Symbol.getAddress(Addr))
continue;
ErrorOr<StringRef> NameOrError = Symbol.getName();
if (!NameOrError) {
continue; // Error.
}
StringRef Name = NameOrError.get();
ErrorOr<uint64_t> AddrOrError = Symbol.getAddress();
if (!AddrOrError) {
continue; // Error.
}
uint64_t Addr = AddrOrError.get();
uint64_t Size = Pair.second;

unsigned LastDebugOffset = -1;
Expand Down

0 comments on commit a4c4bc7

Please sign in to comment.