Skip to content

Commit

Permalink
More instances of getSectionLoadAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Jul 30, 2015
1 parent 322d4c8 commit 22c6c5e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,12 @@ class JuliaJITEventListener: public JITEventListener
sym_iter.getSection(Section);
# ifdef LLVM36
assert(Section->isText());
# ifdef LLVM38
SectionAddr = L.getSectionLoadAddress(*Section);
# else
Section->getName(sName);
SectionAddr = L.getSectionLoadAddress(sName);
# endif
Addr += SectionAddr;
# else
if (Section->isText(isText) || !isText) assert(0 && "!isText");
Expand Down Expand Up @@ -325,8 +329,12 @@ class JuliaJITEventListener: public JITEventListener
if (Section == EndSection) continue;
#if defined(LLVM36)
if (!Section->isText()) continue;
# ifdef LLVM38
SectionAddr = L.getSectionLoadAddress(*Section);
# else
Section->getName(sName);
SectionAddr = L.getSectionLoadAddress(sName);
# endif
Addr += SectionAddr;
#else
if (Section->isText(isText) || !isText) continue;
Expand Down

0 comments on commit 22c6c5e

Please sign in to comment.