forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debuginfo.h
22 lines (18 loc) · 844 Bytes
/
debuginfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// This file is a part of Julia. License is MIT: https://julialang.org/license
// Declarations for debuginfo.cpp
int jl_DI_for_fptr(uint64_t fptr, uint64_t *symsize, int64_t *slide,
llvm::object::SectionRef *Section, llvm::DIContext **context) JL_NOTSAFEPOINT;
bool jl_dylib_DI_for_fptr(size_t pointer, llvm::object::SectionRef *Section, int64_t *slide, llvm::DIContext **context,
bool onlySysImg, bool *isSysImg, void **saddr, char **name, char **filename) JL_NOTSAFEPOINT;
#if JL_LLVM_VERSION >= 90000
static object::SectionedAddress makeAddress(
llvm::object::SectionRef Section, uint64_t address) JL_NOTSAFEPOINT
{
return object::SectionedAddress{address, Section.getIndex()};
}
#else
static uint64_t makeAddress(llvm::object::SectionRef Section, uint64_t address) JL_NOTSAFEPOINT
{
return address;
}
#endif