Index: llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp =================================================================== --- llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -267,11 +267,13 @@ } uint64_t Addr = *AddrOrErr; uint64_t Size = P.second; + object::SectionedAddress SectionedAddress = object::SectionedAddress(); + SectionedAddress.Address = Addr; // According to spec debugging info has to come before loading the // corresonding code load. DILineInfoTable Lines = Context->getLineInfoForAddressRange( - Addr, Size, FileLineInfoKind::AbsoluteFilePath); + SectionedAddress, Size, FileLineInfoKind::AbsoluteFilePath); NotifyDebug(Addr, Lines); NotifyCode(Name, Addr, Size);