mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Try to fix the build of IntelJITEventListener.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a80641a85
commit
c223f39fa7
@ -114,10 +114,11 @@ void IntelJITEventListener::NotifyObjectEmitted(
|
|||||||
std::string SourceFileName;
|
std::string SourceFileName;
|
||||||
|
|
||||||
if (Sym.getType() == SymbolRef::ST_Function) {
|
if (Sym.getType() == SymbolRef::ST_Function) {
|
||||||
StringRef Name;
|
ErrorOr<StringRef> Name = Sym.getName();
|
||||||
uint64_t Addr;
|
if (!Name)
|
||||||
if (Sym.getName(Name))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
uint64_t Addr;
|
||||||
if (Sym.getAddress(Addr))
|
if (Sym.getAddress(Addr))
|
||||||
continue;
|
continue;
|
||||||
uint64_t Size = P.second;
|
uint64_t Size = P.second;
|
||||||
@ -126,10 +127,8 @@ void IntelJITEventListener::NotifyObjectEmitted(
|
|||||||
Functions.push_back((void*)Addr);
|
Functions.push_back((void*)Addr);
|
||||||
|
|
||||||
// Build the function loaded notification message
|
// Build the function loaded notification message
|
||||||
iJIT_Method_Load FunctionMessage = FunctionDescToIntelJITFormat(*Wrapper,
|
iJIT_Method_Load FunctionMessage =
|
||||||
Name.data(),
|
FunctionDescToIntelJITFormat(*Wrapper, Name->data(), Addr, Size);
|
||||||
Addr,
|
|
||||||
Size);
|
|
||||||
if (Context) {
|
if (Context) {
|
||||||
DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size);
|
DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size);
|
||||||
DILineInfoTable::iterator Begin = Lines.begin();
|
DILineInfoTable::iterator Begin = Lines.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user